监视器
¥Watchers
可以在调试时监视表达式和变量值。在每个断点上,监视器列表中的每个表达式都将在当前上下文中进行评估,并且立即显示在断点的源代码列表之前。
¥It is possible to watch expression and variable values while debugging. On every breakpoint, each expression from the watchers list will be evaluated in the current context and displayed immediately before the breakpoint's source code listing.
要开始监视表达式,则键入 watch('my_expression')
。命令 watchers
将打印活动的监视器。要删除监视器,请键入 unwatch('my_expression')
。
¥To begin watching an expression, type watch('my_expression')
. The command
watchers
will print the active watchers. To remove a watcher, type
unwatch('my_expression')
.