Having a file (let's call it script.js) with the following content:
console.log("Hello World!");
(so, one line with a console.log on it)
Runnning node script.js it outputs "Hello World!".
The problem is when I run node debug script.js. I get the following output:
$ node debug script.js
< debugger listening on port 5858
connecting... ok
break in script.js:1
1 console.log("Hello World!");
2
3 });
debug>
Why did the last 2 lines appear?
It looks for me like a bug but maybe there is another explication?


