Say I define a variable named var
in the main function. And the I set a watchpoint to it. Then I enter another function called func()
. At this time, the watchpoints may be deleted so that I have no access to that variable. Any method to make to possible to always keep the watchpoint whenever you are?
Also, I know I can use syntax like print main::var
to print out the value of the variable. But that is not sufficient enough. Any good idea?