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


Posts: 37
Joined: Aug 6th, 2016
show expression
Aug 11th, 2019 at 2:45pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: show expression
Reply #1 - Aug 11th, 2019 at 3:28pm
Print Post  
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.
« Last Edit: Aug 11th, 2019 at 3:29pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
ram
Junior Member
**
Offline


Posts: 37
Joined: Aug 6th, 2016
Re: show expression
Reply #2 - Aug 11th, 2019 at 4:03pm
Print Post  
YAY!!!!  Smiley

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint