Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

internal error in Node's debugger #636

Closed
asyncanup opened this issue Feb 5, 2011 · 2 comments
Closed

internal error in Node's debugger #636

asyncanup opened this issue Feb 5, 2011 · 2 comments
Labels

Comments

@asyncanup
Copy link

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:~$

@sh1mmer
Copy link

sh1mmer commented Oct 20, 2011

Works correctly in 0.5.9-pre but not in 0.4.12.

@sh1mmer
Copy link

sh1mmer commented Oct 20, 2011

Won't fix for 0.4.12 but it's working in HEAD.

@sh1mmer sh1mmer closed this as completed Oct 20, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants