信息
backtrace
,bt
: 打印当前执行帧的回溯list(5)
: 列出脚本源代码的 5 行上下文(前后各 5 行)watch(expr)
: 将表达式添加到监视列表unwatch(expr)
: 从监视列表中删除表达式watchers
: 列出所有监视器及其值(在每个断点上自动列出)repl
: 打开调试器的交互式解释器,以在调试脚本的上下文中进行评估exec expr
,p expr
: 在调试脚本的上下文中执行表达式并打印它的值
backtrace
,bt
: Print backtrace of current execution framelist(5)
: List scripts source code with 5 line context (5 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
,p expr
: Execute an expression in debugging script's context and print its value