Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Usb/Serial/Udp Debugging >> show expression
https://www.visualmicro.com/forums/YaBB.pl?num=1565534704

Message started by ram on Aug 11th, 2019 at 3:45pm

Title: show expression
Post by ram on 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


Title: Re: show expression
Post by Visual Micro on 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.

Title: Re: show expression
Post by ram on Aug 11th, 2019 at 5:03pm
YAY!!!!  :)


Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.