信息
¥Information
-
backtrace,bt:打印当前执行帧的回溯¥
backtrace,bt: Print backtrace of current execution frame -
list(5):列出脚本源代码的 5 行上下文(前后各 5 行)¥
list(5): List scripts source code with 5 line context (5 lines before and after) -
watch(expr):将表达式添加到监视列表¥
watch(expr): Add expression to watch list -
unwatch(expr):从监视列表中删除表达式¥
unwatch(expr): Remove expression from watch list -
unwatch(index):从监视列表中删除特定索引处的表达式¥
unwatch(index): Remove expression at specific index from watch list -
watchers:列出所有监视器及其值(在每个断点上自动列出)¥
watchers: List all watchers and their values (automatically listed on each breakpoint) -
repl:打开调试器的交互式解释器,以在调试脚本的上下文中进行评估¥
repl: Open debugger's repl for evaluation in debugging script's context -
exec expr,p expr:在调试脚本的上下文中执行表达式并打印它的值¥
exec expr,p expr: Execute an expression in debugging script's context and print its value -
profile:启动 CPU 分析会话¥
profile: Start CPU profiling session -
profileEnd:停止当前 CPU 分析会话¥
profileEnd: Stop current CPU profiling session -
profiles:列出所有已完成的 CPU 分析会话¥
profiles: List all completed CPU profiling sessions -
profiles[n].save(filepath = 'node.cpuprofile'):将 CPU 分析会话以 JSON 格式保存到磁盘¥
profiles[n].save(filepath = 'node.cpuprofile'): Save CPU profiling session to disk as JSON -
takeHeapSnapshot(filepath = 'node.heapsnapshot'):获取堆快照并以 JSON 格式保存到磁盘¥
takeHeapSnapshot(filepath = 'node.heapsnapshot'): Take a heap snapshot and save to disk as JSON