chrome65 version devtool inspect model to debug js auto close connection when open js source file
Reported by
frankfen...@gmail.com,
Mar 15 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Steps to reproduce the problem:
1. i run gulp with node8.7(the newest 9.8 is also not work,the proble is not node ,is devtool)
2. node --inspect=9222 --inspect-brk node_modules/gulp/bin/gulp.js --gulpfile mygulpfile.js
the mygulpfile.js's gulp task is aways run,not exit,just like this:
require("gulp").task("default", function (callback) {
console.log('gulp task');
//callback(); //don't call callback ,and it can hold the task not finish,so it aways run not exit,this use is common,not problem.
});
3. open devtool, it auto goto debug model,and stoped at node_modules/gulp/bin/gulp.js's first line ,no problem.
4.when resume , the js run with any error ,and just as expect, it is hold,not exit.
5.but when I open the mygulpfile.js file, the devtool report websockt conection closed, and reconect is not work, this can reproduct every time. I add debugger instruction into fist line of mygulpfile.js , re run gulp task, re open devtool, but when run to debugger line, with the mygulpfile.js file auto opend , the websocket connection also closed. mygulpfile.js's content is short, it's a smarl file , and code is no error no warning.
6.I work with the gulpfile two years, just in recent days ,chrome update to 65version,this happened, I try get 63version , it work right no this problem. and I use 64 version before update, and also work right. So i think the problem is 65version.
What is the expected behavior?
What went wrong?
I work with the gulpfile two years, just in recent days ,chrome update to 65version,this happened, I try get 63version , it work right no this problem. and I use 64 version before update, and also work right. So i think the problem is 65version.
Did this work before? N/A
Chrome version: 65.0.3325.162 Channel: stable
OS Version: OS X 10.12.6
Flash Version:
,
Mar 15 2018
,
Mar 15 2018
,
Mar 15 2018
I cannot reproduce. Please confirm I am properly following your instructions. 0. In a new folder, I did "npm install gulp" and pasted your script. 1. $ node --inspect=9222 --inspect-brk node_modules/gulp/bin/gulp.js --gulpfile mygulpfile.js Output: Debugger listening on ws://127.0.0.1:9222/d989e30e-f4f5-4e95-878a-9eca7925bcdf For help see https://nodejs.org/en/docs/inspector 2. I open chrome://inspect and click a link for this target. Output: Debugger attached. 3. I focus on DevTools, Gulp source file is open. Resuming the node [15:55:18] Using gulpfile /tmp/gulp-test/mygulpfile.js [15:55:18] Starting 'default'... gulp task Waiting for the debugger to disconnect... I do not see mygulpfile.js (or any other file) in the sources tab, even though console output clearly shows that code was ran. Looks like in my case script runs to completion instead of running indefinitely.
,
Oct 12
,
Dec 17
Closing this issue according to comment #4. Feel free. however, to reopen if eostroukhov@'s steps were not following your instructions. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by krajshree@chromium.org
, Mar 15 2018