Skip to content

Instantly share code, notes, and snippets.

@Kami
Created March 29, 2011 00:33
Show Gist options
  • Select an option

  • Save Kami/891608 to your computer and use it in GitHub Desktop.

Select an option

Save Kami/891608 to your computer and use it in GitHub Desktop.
node debug 1.js
debug> run
debugger listening on port 5858
connecting...ok
breakpoint #1 in #<Object>.[anonymous](exports=#<Object>, require=function require(path) {
return Module._load(path, self);
}, module=#<Module>, __filename=/home/vagrant/1.js, __dirname=/home/vagrant), /home/vagrant/1.js:1
(function (exports, require, module, __filename, __dirname) { console.log('bar')
^
debug> next
bar
break in #<Object>.[anonymous](exports=#<Object>, require=function require(path) {
return Module._load(path, self);
}, module=#<Module>, __filename=/home/vagrant/1.js, __dirname=/home/vagrant), /home/vagrant/1.js:2
debugger;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment