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....
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Breakpoint in serial debugging does not show variable value (Read 153 times)
Egol
Junior Member
**
Offline



Posts: 13
Breakpoint in serial debugging does not show variable value
Jun 1st, 2021 at 8:03am
 
Hello,
I'm working with the serial debugger and I can see the millis breakpoint data both on the Micro Debug Trace output as well as on the expression window.
I'm trying to add another break point that is doing the same thing with another variable but I can't get any output (See screenshot attached)
Thanks,
Eyal
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11127
United Kingdom
Re: Breakpoint in serial debugging does not show variable value
Reply #1 - Jun 1st, 2021 at 3:02pm
 
The serial/wifi debugger has to inject code into the temp build copy of the code. It injects onto the end of the code line which means inside an IF statement if the breakpoint is placed on an IF.

In this case I suspect the IF statement the breakpoint is on resolved to false and therefore the breakpoint is not hit.

Because it is an injected code debugger you can move the breapoint up one line to an empty line if you need it to execute the breakpoint outside of the line you have selected.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Egol
Junior Member
**
Offline



Posts: 13
Re: Breakpoint in serial debugging does not show variable value
Reply #2 - Jun 1st, 2021 at 8:01pm
 
Thank you! This was it! I moved it up a bit and I can see the variable value, Thanks! Smiley
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print