Skip to content

Commit 146cba1

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: improve debugger doc prose
PR-URL: #7007 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 694e344 commit 146cba1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

doc/api/debugger.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ break in /home/indutny/Code/git/indutny/myscript.js:1
2020
debug>
2121
```
2222

23-
Node.js's debugger client does not yet support the full range of commands, but
24-
simple step and inspection are possible.
23+
Node.js's debugger client is not a full-featured debugger, but simple step and
24+
inspection are possible.
2525

2626
Inserting the statement `debugger;` into the source code of a script will
27-
enable a breakpoint at that position in the code.
28-
29-
For example, suppose `myscript.js` is written as:
27+
enable a breakpoint at that position in the code:
3028

3129
```js
3230
// myscript.js
@@ -81,8 +79,7 @@ debug> quit
8179
```
8280

8381
The `repl` command allows code to be evaluated remotely. The `next` command
84-
steps over to the next line. Type `help` to see what other commands are
85-
available.
82+
steps to the next line. Type `help` to see what other commands are available.
8683

8784
## Watchers
8885

@@ -95,7 +92,7 @@ To begin watching an expression, type `watch('my_expression')`. The command
9592
`watchers` will print the active watchers. To remove a watcher, type
9693
`unwatch('my_expression')`.
9794

98-
## Commands reference
95+
## Command reference
9996

10097
### Stepping
10198

@@ -142,7 +139,7 @@ break in test/fixtures/break-in-module/mod.js:23
142139
debug>
143140
```
144141

145-
### Info
142+
### Information
146143

147144
* `backtrace`, `bt` - Print backtrace of current execution frame
148145
* `list(5)` - List scripts source code with 5 line context (5 lines before and
@@ -171,7 +168,7 @@ An alternative way of enabling and accessing the debugger is to start
171168
Node.js with the `--debug` command-line flag or by signaling an existing
172169
Node.js process with `SIGUSR1`.
173170

174-
Once a process has been set in debug mode this way, it can be connected to
171+
Once a process has been set in debug mode this way, it can be inspected
175172
using the Node.js debugger by either connecting to the `pid` of the running
176173
process or via URI reference to the listening debugger:
177174

0 commit comments

Comments
 (0)