VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> Breakpoint in serial debugging does not show variable value
https://www.visualmicro.com/forums/YaBB.pl?num=1622531039

Message started by Egol on Jun 1st, 2021 at 7:03am

Title: Breakpoint in serial debugging does not show variable value
Post by Egol on Jun 1st, 2021 at 7: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

Screenshot_2021-06-01_100153.png ( 30 KB | 3 Downloads )

Title: Re: Breakpoint in serial debugging does not show variable value
Post by Tim@Visual Micro on Jun 1st, 2021 at 2: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.

Title: Re: Breakpoint in serial debugging does not show variable value
Post by Egol on Jun 1st, 2021 at 7:01pm
Thank you! This was it! I moved it up a bit and I can see the variable value, Thanks! :)

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2023. All Rights Reserved.