Page 1 of 1

Unable to access local variables in the simulation debugger

Posted: Sun Jul 31, 2016 4:16 am
by Zane
Hi,

During simulation i am finding that if you have jumped to a macro, in the simulation debugger window, if you want to add global variables to watch you are able to but are unable to access the local variables from the variable manager to add those as well.
Untitled.jpg
Untitled.jpg (53.97 KiB) Viewed 8059 times

Re: Unable to access local variables in the simulation debug

Posted: Mon Aug 01, 2016 9:12 am
by LeighM
Thanks, I've added this to our bug tracker.
Leigh

Re: Unable to access local variables in the simulation debug

Posted: Mon Aug 01, 2016 2:20 pm
by EtsDriver
A workaround to enable local variable watching, you have to just know your variable name:
1. Step your program into the local macro that has the variable you want to watch.
2. Doubleclick the "Expression" text
localwatch1.JPG
localwatch1.JPG (28.94 KiB) Viewed 8021 times
3. Entering the local variable name like .myLocalVal and pressing enter.
localwatch2.JPG
localwatch2.JPG (33.28 KiB) Viewed 8021 times
4. Now you can now watch your local variable go up down, add, whatever it does! :)
localwatch3.JPG
localwatch3.JPG (28.42 KiB) Viewed 8021 times