node.jshelp
コマンドの出力は次のとおりです。
debug> help
Commands: run (r), cont (c), next (n), step (s), out (o), backtrace (bt), setBreakpoint (sb), clearBreakpoint (cb),
watch, unwatch, watchers, repl, restart, kill, list, scripts, breakOnException, breakpoints, version
次を使用して新しいブレークポイントを追加できますsetBreakpoint
。
debug> setBreakpoint(12)
...
しかし、条件付きにすることはできますか?例えば:
*only if `foo() === true`, stop here*
if
別の方法は、スクリプトのように追加することです。
if (foo()) { debugger; }
これは NodeJS デバッガー経由で可能ですか?