监视器


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

要开始监视表达式,则键入 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').