Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Debugger variable modification (Read 146 times)
Trek19
Junior Member
**
Offline



Posts: 74
UK
Debugger variable modification
Aug 18th, 2019 at 12:24pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Debugger variable modification
Reply #1 - Aug 18th, 2019 at 12:28pm
 
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: 74
UK
Re: Debugger variable modification
Reply #2 - Aug 18th, 2019 at 12:58pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Debugger variable modification
Reply #3 - Aug 18th, 2019 at 1:15pm
 
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: 74
UK
Re: Debugger variable modification
Reply #4 - Aug 18th, 2019 at 1:33pm
 
I am using theme "Blue"
Jim
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Debugger variable modification
Reply #5 - Aug 18th, 2019 at 1:38pm
 
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: 74
UK
Re: Debugger variable modification
Reply #6 - Aug 18th, 2019 at 2:51pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Debugger variable modification
Reply #7 - Aug 18th, 2019 at 6:19pm
 
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
Back to top
« Last Edit: Aug 18th, 2019 at 6:21pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print