You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
As per the official docs:
node debug <script>
starts the script and attaches a debuggernode debug <host>:<port>
attaches to a running debugger remotelyhelp
shows available commandsStepping
cont
,c
: Resumes executionnext
,n
: Step over current linestep
,s
: Step into current line, potentially entering the function being calledout
,o
: Drop out of current functionpause
: Pause executionBreakpoints
setBreakpoint()
,sb()
: Set breakpoint on current linesetBreakpoint(line)
,sb(line)
: Set breakpoint on specific linesetBreakpoint('fn()')
,sb(...)
: Set breakpoint on a first statement in functions bodysetBreakpoint('script.js', 1)
,sb(...)
: Set breakpoint on first line of script.jsbreakpoints
: List all breakpointsclearBreakpoint('script.js', 1)
,cb(...)
: Clear breakpoint in script.js on line 1Information
backtrace
,bt
: Print backtrace of current execution framelist(n)
: List scripts source code withn
line context (n
lines before and after)watch(expr)
: Add expression to watch listunwatch(expr)
: Remove expression from watch listwatchers
: List all watchers and their values (automatically listed on each breakpoint)repl
: Open debugger's repl for evaluation in debugging script's contextexec expr
/exec('expr')
: Execute an expression in debugging script's contextExecution control
run
: Run script (automatically runs on debugger's start)restart
: Restart scriptkill
: Kill scriptVarious
scripts
: List all loaded scriptsversion
: Display V8's versionThe text was updated successfully, but these errors were encountered: