Commit 2b7eb56
debugger: improve validations and documents for watch and unwatch
- debugger: add string validation for watch(expr)
- debugger: add help document for watch(index)
- test: add test for watch(index) command
- doc: add information on unwatch(index) option
PR-URL: #46947
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>1 parent 94882f5 commit 2b7eb56Copy full SHA for 2b7eb56
File tree
Expand file treeCollapse file tree
4 files changed
+34
-4
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/debugger
- test/sequential
Expand file treeCollapse file tree
4 files changed
+34
-4
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
197 | 197 | |
198 | 198 | |
199 | 199 | |
| 200 | + |
200 | 201 | |
201 | 202 | |
202 | 203 | |
|
Collapse file
lib/internal/debugger/inspect_repl.js
Copy file name to clipboardExpand all lines: lib/internal/debugger/inspect_repl.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
| 94 | + |
94 | 95 | |
95 | 96 | |
96 | 97 | |
| ||
1078 | 1079 | |
1079 | 1080 | |
1080 | 1081 | |
| 1082 | + |
1081 | 1083 | |
1082 | 1084 | |
1083 | 1085 | |
|
Collapse file
test/sequential/test-debugger-watch-validation.js
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
Collapse file
test/sequential/test-debugger-watchers.mjs
Copy file name to clipboardExpand all lines: test/sequential/test-debugger-watchers.mjs+11-4Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
32 | 40 | |
33 | 41 | |
34 | 42 | |
35 | 43 | |
36 | 44 | |
37 | 45 | |
38 | | - |
39 | | - |
| 46 | + |
40 | 47 | |
41 | 48 | |
42 | | - |
| 49 | + |
43 | 50 | |
44 | 51 | |
45 | 52 | |
|
0 commit comments