Skip to content

Commit 9e56d4a

Browse files
authored
feat: document the --inspect-wait flag (#6948)
1 parent d3964aa commit 9e56d4a

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

apps/site/pages/en/learn/getting-started/debugging.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,16 @@ See https://eclipse.org/eclipseide for more information.
121121

122122
The following table lists the impact of various runtime flags on debugging:
123123

124-
| Flag | Meaning |
125-
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
126-
| --inspect | Enable inspector agent; Listen on default address and port (127.0.0.1:9229) |
127-
| --inspect=[host:port] | Enable inspector agent; Bind to address or hostname host (default: 127.0.0.1); Listen on port port (default: 9229) |
128-
| --inspect-brk | Enable inspector agent; Listen on default address and port (127.0.0.1:9229); Break before user code starts |
129-
| --inspect-brk=[host:port] | Enable inspector agent; Bind to address or hostname host (default: 127.0.0.1); Listen on port port (default: 9229); Break before user code starts |
130-
| node inspect script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. |
131-
| node inspect --port=xxxx script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. Listen on port port (default: 9229) |
124+
| Flag | Meaning |
125+
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
126+
| --inspect | Enable inspector agent; Listen on default address and port (127.0.0.1:9229) |
127+
| --inspect=[host:port] | Enable inspector agent; Bind to address or hostname host (default: 127.0.0.1); Listen on port port (default: 9229) |
128+
| --inspect-brk | Enable inspector agent; Listen on default address and port (127.0.0.1:9229); Break before user code starts |
129+
| --inspect-brk=[host:port] | Enable inspector agent; Bind to address or hostname host (default: 127.0.0.1); Listen on port port (default: 9229); Break before user code starts |
130+
| --inspect-wait | Enable inspector agent; Listen on default address and port (127.0.0.1:9229); Wait for debugger to be attached. |
131+
| --inspect-wait=[host:port] | Enable inspector agent; Bind to address or hostname host (default: 127.0.0.1); Listen on port port (default: 9229); Wait for debugger to be attached. |
132+
| node inspect script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. |
133+
| node inspect --port=xxxx script.js | Spawn child process to run user's script under --inspect flag; and use main process to run CLI debugger. Listen on port port (default: 9229) |
132134

133135
## Enabling remote debugging scenarios
134136

0 commit comments

Comments
 (0)