@ -10,7 +10,7 @@ start Node.js with the `debug` argument followed by the path to the script to
debug; a prompt will be displayed indicating successful launch of the debugger:
debug; a prompt will be displayed indicating successful launch of the debugger:
```
```
% node debug myscript.js
$ node debug myscript.js
< debugger listening on port 5858
< debugger listening on port 5858
connecting... ok
connecting... ok
break in /home/indutny/Code/git/indutny/myscript.js:1
break in /home/indutny/Code/git/indutny/myscript.js:1
@ -41,7 +41,7 @@ console.log('hello');
Once the debugger is run, a breakpoint will occur at line 4:
Once the debugger is run, a breakpoint will occur at line 4:
```
```
% node debug myscript.js
$ node debug myscript.js
< debugger listening on port 5858
< debugger listening on port 5858
connecting... ok
connecting... ok
break in /home/indutny/Code/git/indutny/myscript.js:1
break in /home/indutny/Code/git/indutny/myscript.js:1
@ -78,7 +78,6 @@ break in /home/indutny/Code/git/indutny/myscript.js:5
6 console.log('hello');
6 console.log('hello');
7
7
debug> quit
debug> quit
%
```
```
The `repl` command allows code to be evaluated remotely. The `next` command
The `repl` command allows code to be evaluated remotely. The `next` command
@ -121,7 +120,7 @@ It is also possible to set a breakpoint in a file (module) that
isn't loaded yet:
isn't loaded yet:
```
```
% ./node debug test/fixtures/break-in-module/main.js
$ ./node debug test/fixtures/break-in-module/main.js
< debugger listening on port 5858
< debugger listening on port 5858
connecting to port 5858... ok
connecting to port 5858... ok
break in test/fixtures/break-in-module/main.js:1
break in test/fixtures/break-in-module/main.js:1