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
show expression (Read 99 times)
ram
Junior Member
**
Offline



Posts: 37
show expression
Aug 11th, 2019 at 3:45pm
 
Hello,

I've set a break-point as shown in the image below but for some reason I don't see that value in the Expressions window, I set the Debug mode ON and made sure that the Tutorial mode is ON also; I complied and uploaded the code but still the expression window is showing the textual tips, can you pls point me to what is it I'm missing here?

Many thanks,
Ram

...
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: show expression
Reply #1 - Aug 11th, 2019 at 4:28pm
 
One quirk of serial debug is that the debug code is injected at compile time in a temp folder. The debug code is always injected at the end of the breakpoint code line. If the code line is an "if()" then the debug code is injected inside the "if()"

Therefore your breakpoint is not being hit because the "if()" does not evaluate to true.

Move the breakpoint location up two lines and it will work. Serial debug breakpoints do not have to be placed on a valid line of code, they can be placed on empty lines too but not on commented code lines.
Back to top
« Last Edit: Aug 11th, 2019 at 4:29pm by Visual Micro »  
WWW  
IP Logged
 
ram
Junior Member
**
Offline



Posts: 37
Re: show expression
Reply #2 - Aug 11th, 2019 at 5:03pm
 
YAY!!!!
  Smiley

...
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print