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 Can't change value of a variable in the expressions window (Read 531 times)
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Can't change value of a variable in the expressions window
Aug 9th, 2024 at 12:51pm
Print Post  
With a simple sketch that increments a variable 'count' I can view its value in the expression window but if I click and change the value the next time I click 'continue' the variable value just reverts to the original value and continues to increment from there.  I assumed that changing the value would do just that, change the value???
  
Back to top
 
IP Logged
 
Steven Bennett
Junior Member
**
Offline


Posts: 35
Location: High Bentham
Joined: Nov 2nd, 2022
Re: Can't change value of a variable in the expressions window
Reply #1 - Aug 9th, 2024 at 1:20pm
Print Post  
Think I've found the answer:
a: add =? to action e.g. {count=?}
b: must be stopped at action breakpoint to change value, not any breakpoint.
see: https://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints-Wh...
Suggestion: change user guide text from - if your sketch is halted in a breakpoint - to - if your sketch is halted in THE breakpoint
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: Can't change value of a variable in the expressions window
Reply #2 - Aug 9th, 2024 at 2:13pm
Print Post  
Thanks for the feedback.

We will review this, and it can depend on the scope of the variable and where the breakpoint is set when it is edited.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint