We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I cannot add local variables to watch window. I read from other thread that this is the because the debugger has not run till the initialisation. I inserted a breakpoint after the initialisation and I still couldn't add the local variable to Watch window.
Can someone share with me how to monitor local variables in Watch windows?
Thanks.
You can add them to Watch 1/2 when they are in scope.
Why add local variables to Watch Windows (i.e. Watch1 and Watch2) when they are automatically added to the Locals Window when they are is scope?
Thanks for your quick reply.
I did what you said by adding them when in scope, but in vain. I don't see anything in the Local window when I run my debug.
By the way, I am using simulation, and a evaluation copy because I am still waiting for my purchased copy.
How certain are you that those local variables even still exist? Compilers are in the habit of optimizing them out of existence.