You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
anup@ubuntu:~$ node debug test.js
debug> run
debugger listening on port 5858
connecting...ok
breakpoint #1 in #.[anonymous](exports=#, require=function require%28path%29 {
return Module._load%28path, self%29;
}, module=#, __filename=/home/anup/test.js, __dirname=/home/anup), /home/anup/test.js:1
(function (exports, require, module, __filename, __dirname) { var http = require('http');
^
debug> continue
debug> Server running at http://127.0.0.1:8124/
A debugging session is active. Quit anyway? (y or n) n
debug> list
There was an internal error in Node's debugger. Please report this bug.
Cannot read property 'source' of undefined
TypeError: Cannot read property 'source' of undefined
at _debugger.js:819:22
at _debugger.js:381:13
at Client._onResponse (_debugger.js:205:5)
at Protocol.onResponse (native)
at Protocol.execute (_debugger.js:95:14)
at Client. (_debugger.js:133:14)
at Client.emit (events.js:42:17)
at Client._onReadable (net.js:613:31)
at IOWatcher.onReadable as callback
anup@ubuntu:~$
The text was updated successfully, but these errors were encountered:
anup@ubuntu:~$ cat test.js
var http = require('http');
var count = 0;
http.createServer(function (request, response) {
console.log("Writin' response");
count += 1;
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
}).listen(8124);
console.log('Server running at http://127.0.0.1:8124/');
anup@ubuntu:~$ node debug test.js
debug> run
debugger listening on port 5858
connecting...ok
breakpoint #1 in #.[anonymous](exports=#, require=function require%28path%29 {
return Module._load%28path, self%29;
}, module=#, __filename=/home/anup/test.js, __dirname=/home/anup), /home/anup/test.js:1
(function (exports, require, module, __filename, __dirname) { var http = require('http');
^
debug> continue
debug> Server running at http://127.0.0.1:8124/
A debugging session is active. Quit anyway? (y or n) n
debug> list
There was an internal error in Node's debugger. Please report this bug.
Cannot read property 'source' of undefined
TypeError: Cannot read property 'source' of undefined
at _debugger.js:819:22
at _debugger.js:381:13
at Client._onResponse (_debugger.js:205:5)
at Protocol.onResponse (native)
at Protocol.execute (_debugger.js:95:14)
at Client. (_debugger.js:133:14)
at Client.emit (events.js:42:17)
at Client._onReadable (net.js:613:31)
at IOWatcher.onReadable as callback
anup@ubuntu:~$
The text was updated successfully, but these errors were encountered: