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 Stepping through my code (Read 3278 times)
casterle
Newbies
*
Offline


Posts: 1
Location: Casper, Wyoming
Joined: Jul 16th, 2013
Stepping through my code
Jul 17th, 2013 at 8:00pm
Print Post  
Is there a way to step through my code line-by-line without setting a breakpoint on each individual line?
  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Stepping through my code
Reply #1 - Jul 18th, 2013 at 5:12am
Print Post  
In principle, this is possible if to place a lot of break points in the sketch.
And use the debugger (Break / Pause).
But another question, is it necessary to do? Smiley
1. It must be remembered that the debugger is purely in software.
2. It just adds a hidden (Serial print).
3. More breakpoints will increase and the microcontroller code will run slowly.
4. The lower the breakpoint, the better, and I think if you place correctly, it is possible to find the error.
PS.
I really debugger helps!
  Thanks Tim for the great and good work.
« Last Edit: Jul 18th, 2013 at 6:03am by gelius59 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Stepping through my code
Reply #2 - Jul 18th, 2013 at 12:29pm
Print Post  
You can only step from breakpoint to breakpoint. 

To cause breakpoints to Pause, you need to set "Break/Pause=true" in the Visual Micro project properties.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint