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 Debug breakpoint hit on loop() but cannot single step (Read 3047 times)
Davepl1968
Newbies
*
Offline


Posts: 1
Joined: Jan 29th, 2015
Debug breakpoint hit on loop() but cannot single step
Jan 29th, 2015 at 8:01pm
Print Post  
Subject says most of it.  Uno, VS2012Pro.  If I build Debug and then do a Start Debugging, it'll hit what looks like a breakpoint on loop().  But I can't single step, and if I set a breakpoint a couple of lines into loop(), it does not hit them.

If I hit go, hits that same breakpoint again.  I've done the 'c' in the serial console, no different.

In short, I'm not getting a lot of debugging done!  I searched as best I could, but this question is apparently more basic than most!

Any tips or a pointer to a relative thread or FAQ entry (or terms to search for) would be appreciated.

Thanks!
Dave
« Last Edit: Jan 29th, 2015 at 8:02pm by Davepl1968 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug breakpoint hit on loop() but cannot single step
Reply #1 - Jan 30th, 2015 at 3:08pm
Print Post  
Hi Dave,

Sorry to say that Arduino does not have real debugging. the Visual Micro debugger is a software/usb debugger that injects the breakpoints into a temp code during compile. So you have to re-compile and upload to add breakpoints.

It is also not possible for it to step all code lines, only to ones with breakpoints. You can only step from breakpoint to breakpoint.

It's also worth viewing the debugger breakpoint docs to see that breakpoints are injected at the end of a code line or, for example, inside an "if" if placed on a conditional code line. "If" conditions without braces are handled.

The debugger must be viewed only as an alternative to using Serial.println() statements in your code to debug along with some additional break/update capabilities.

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