监视器


调试时可以监视表达式和变量值。 在每个断点处,监视器列表中的每个表达式将在当前上下文中进行运行,并在断点的源代码列表之前立即显示。

要开始监视表达式,请键入 watch('my_expression')watchers 命令将打印活动的监视器。 要移除监视器,请键入 unwatch('my_expression')

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.

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').