Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Debugger variable modification (Read 1721 times)
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Debugger variable modification
Aug 18th, 2019 at 11:24am
Print Post  
I have been trying to use the Debugger but if I enter a variable for modification as described in the online help:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints-Wh...
as  {counter=?}
the variable shown in the Expression window doesn't appear yellow and whilst I can modify its value in the window this new value is not used the program when it continues using  [F5] .

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger variable modification
Reply #1 - Aug 18th, 2019 at 11:28am
Print Post  
Okay so you are using the serial debugger. Did you press ENTER after changing the value? The new value might not display until the breakpoint is next hit but should be available to the code.
  
Back to top
WWW  
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Debugger variable modification
Reply #2 - Aug 18th, 2019 at 11:58am
Print Post  
OK pressing ENTER after modifying the variable done the trick but the box is still not yellow, no big deal though.

Thanks for speedy response.
Jim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger variable modification
Reply #3 - Aug 18th, 2019 at 12:15pm
Print Post  
When we introduced themes the yellow didn't work to it was changed to just be different from readonly expressions. Which theme are using using?
  
Back to top
WWW  
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Debugger variable modification
Reply #4 - Aug 18th, 2019 at 12:33pm
Print Post  
I am using theme "Blue"
Jim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger variable modification
Reply #5 - Aug 18th, 2019 at 12:38pm
Print Post  
If you have more than one variable in the watch expressions is there a difference in color between readonly and modifiable variables?
  
Back to top
WWW  
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Debugger variable modification
Reply #6 - Aug 18th, 2019 at 1:51pm
Print Post  
read only appear in a cell with the same background colour as the window ie pale blue whereas the modifiable variables appear in a cell with a white background.

Jim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger variable modification
Reply #7 - Aug 18th, 2019 at 5:19pm
Print Post  
Yes the colors change depending on theme. Docs need updating.

Moved your next question to a new thread 
https://www.visualmicro.com/forums/YaBB.pl?num=1566138738/0#0
« Last Edit: Aug 18th, 2019 at 5:21pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint