Unable to access local variables in the simulation debugger

A forums to allow resolved bugs and problems with Flowcode v7 to be stored and marked as resolved.

Moderator: Benj

Zane
Flowcode v5 User
Posts: 195
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 91 times
Been thanked: 75 times
Contact:

Unable to access local variables in the simulation debugger

Postby Zane » Sun Jul 31, 2016 4:16 am

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 2834 times
These users thanked the author Zane for the post (total 2):
LeighM (Mon Aug 01, 2016 9:12 am) • Benj (Mon Aug 01, 2016 2:28 pm)
Rating: 11.11%
 

User avatar
LeighM
Matrix Staff
Posts: 1845
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 429 times
Been thanked: 612 times
Contact:

Re: Unable to access local variables in the simulation debug

Postby LeighM » Mon Aug 01, 2016 9:12 am

Thanks, I've added this to our bug tracker.
Leigh
These users thanked the author LeighM for the post:
Zane (Mon Aug 01, 2016 9:32 am)
Rating: 5.56%
 

EtsDriver
Valued Contributor
Valued Contributor
Posts: 411
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 328 times
Been thanked: 210 times
Contact:

Re: Unable to access local variables in the simulation debug

Postby EtsDriver » Mon Aug 01, 2016 2:20 pm

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 2796 times

3. Entering the local variable name like .myLocalVal and pressing enter.
localwatch2.JPG
localwatch2.JPG (33.28 KiB) Viewed 2796 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 2796 times
These users thanked the author EtsDriver for the post (total 3):
medelec35 (Mon Aug 01, 2016 2:27 pm) • Benj (Mon Aug 01, 2016 2:28 pm) • Zane (Tue Aug 02, 2016 12:31 am)
Rating: 16.67%
 
Ill just keep the good work up!