VS Arduino
Visual Micro >> Installation & Troubleshooting >> Debugging Tutorial Doesn't Work Properly
https://www.visualmicro.com/forums/YaBB.pl?num=1565118094

Message started by Jeff H on Aug 6th, 2019 at 7:01pm

Title: Debugging Tutorial Doesn't Work Properly
Post by Jeff H on Aug 6th, 2019 at 7:01pm
Hi-

I'm just starting to learn how to use the debugger but I'm following the tutorial and it isn't behaving as expected.  According to the tutorial it is supposed to pause the program at the breakpoint.  Mine just streams infinite information in the output. I'm using VS2019 and W10.   https://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Walkthrough-1.html

11:44:52.341 [up:09s:511ms perf:244ms]   BlinkWithoutDelay.ino, line 49            millis()=9511
     Millis is currently 9511.
11:44:52.573 [up:09s:761ms perf:244ms]   BlinkWithoutDelay.ino, line 49            millis()=9761
     Millis is currently 9761.
11:44:52.889 [up:10s:011ms perf:244ms]   BlinkWithoutDelay.ino, line 49            millis()=10011
     Millis is currently 10011.


If I remove the automatic breakpoint and put my own in at the same spot it then does pause the program BUT it will not display the millis like the tutorial shows.  All I get is this:

Program Running 'BlinkWithoutDelay'
11:59:36.524    BlinkWithoutDelay.ino, line 49
BlinkWithoutDelay is paused at BlinkWithoutDelay.ino, line 49


Any help would be greatly appreciated.

I have tried VS2017 and Atmel Studio and they both behave the same.  I have tried uninstalling and resinstalling VisualMicro as well with the same results.


Title: Re: Debugging Tutorial Doesn't Work Properly
Post by Jeff H on Aug 6th, 2019 at 7:02pm
Forgot to include the photo
2019-08-06_11_45_17-BlinkWithoutDelay_-_Microsoft_Visual_Studio.png ( 81 KB | 2 Downloads )

Title: Re: Debugging Tutorial Doesn't Work Properly
Post by Visual Micro on Aug 6th, 2019 at 7:26pm
We are improving the docs at the moment. When you add a message to a breakpoint visual studio automatically enabled the "Continue Execution" checkbox on the same place you set the message or watch expressions.

The checkbox is the difference between a trace point and a breakpoint.

Does this help?

Title: Re: Debugging Tutorial Doesn't Work Properly
Post by Jeff H on Aug 6th, 2019 at 8:16pm
Ok I got it-

Currently the debug tutorial is not complete.  When the automatic breakpoint is inserted it actually makes it a trace point. It also automatically fills in some of the required information to get millis to display on the output log. 

To make it behave like the tutorial you need to right click the automatic breakpoint and select "Conditions" Scroll down inside the blue box and uncheck "Continue code execution" 

To get millis to show up on manual breakpoints you need to right click the breakpoint and select "Actions" and paste in "Millis is currently {millis()}."

Thank you for your help!

Title: Re: Debugging Tutorial Doesn't Work Properly
Post by Visual Micro on Aug 6th, 2019 at 8:22pm
Thanks! yes we are going to update, especially now that support for older VS versions has ended. The breakpoint window used to work a  different way.


more info...

The automatic breakpoint was moved to tracepoint because some new users did not see the F5 continue message and did not understand why their program stopped working.

The automatic breakpoint only appears if you have Tutoria Mode enabled and have not created a breakpoint yourself.


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