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 How does stepping work with the debugger? (Read 6835 times)
boylesg
Junior Member
**
Offline


Posts: 14
Joined: Jan 17th, 2014
How does stepping work with the debugger?
Aug 26th, 2015 at 10:51am
Print Post  
But I don't get how the debugger is supposed to work.

I get the following in my output window.

It seems to stop at the break point that I set in my loop function.

But hitting F10 (step over) just causes it to run so that it stops again at my break point. There does not seem to be any way to step through each line of code.

Code
Select All
Program Started 'POVClockMultiplexed'
20:47:15.343 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:28.156 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:30.531 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:32.406 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:35.578 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:38.890 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:40.875 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:52.062 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop()
POVClockMultiplexed Running
20:47:53.718 POVClockMultiplexed.ino, line 137	loop()
POVClockMultiplexed is paused at POVClockMultiplexed.ino, line 137, loop() 


« Last Edit: Aug 26th, 2015 at 10:53am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does stepping work with the debugger?
Reply #1 - Aug 26th, 2015 at 9:33pm
Print Post  
Arduino doesn't have any debugging. The Visual Micro debugger is a software debugger than injects breakpoint serial behind the scenes without need to change the code. So stepping each line is not currently possible. Only stepping between breakpoints is supported.
« Last Edit: Aug 26th, 2015 at 9:34pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Heinz Kessler
Full Member
***
Offline


Posts: 217
Location: Freiburg, Germany
Joined: May 25th, 2012
Re: How does stepping work with the debugger?
Reply #2 - Aug 28th, 2015 at 6:04am
Print Post  
The fact that single stepping is not supported is documented here:
http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Differences.html

This document is linked from the main debugging documentation page:
http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging.html

Single stepping would require hardware support in the CPU, which the 8 Bit Atmel CPUs do not provide.

We have prepared a step-by-step debugging tutorial that we will publish in the next few days, and which is intended to help people with their first steps with Arduino/Visual Micro debugging.

Regards,
Heinz Kessler - Visual Micro
  
Back to top
 
IP Logged
 
Yachtsman
Newbies
*
Offline


Posts: 6
Joined: Sep 20th, 2015
Re: How does stepping work with the debugger?
Reply #3 - Sep 22nd, 2015 at 12:15am
Print Post  
Does it support more than one break point at a time?
I'm very new to the visual micro.   
My code stops at the first break point it encounters but I can't restart to go to the next break point.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does stepping work with the debugger?
Reply #4 - Sep 22nd, 2015 at 10:40am
Print Post  
Hi,

The only limit on the number of breakpoints is the amount of memory available on the Arduino. Normally this would be quite a few.

One command to go to the next breakpoint is pressing F5 or the "Green Arrow >" toolbar icon

NOTE: If your own code reads the serial then you will have problems with break/continue and instead should use a different serial port or digital pin(s) for the debugger

« Last Edit: Sep 22nd, 2015 at 10:41am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Yachtsman
Newbies
*
Offline


Posts: 6
Joined: Sep 20th, 2015
Sketch won't continue after the first breakpoint...
Reply #5 - Sep 22nd, 2015 at 6:55pm
Print Post  
I have several breakpoints set.  I have built and loaded the sketch.  

Execution stops at the first breakpoint but won't continue with F10 or F5.  

I'm new to Visual Micro so I'm probably missing something simple.

BTW: What does " Send char 'c' if the hardware does not support auto-reset and was paused at a breakpoint when the debugger started" Mean?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does stepping work with the debugger?
Reply #6 - Sep 23rd, 2015 at 12:56pm
Print Post  
Hi,

Could you please show a screen shot of the entire ide when stopped at a breakpoint.

I don't think sending a c applies to you. This is for when the Ide does not know the Arduino was already stopped at a breakpoint when the debugger started. It relates to the "send" box on the serial monitor. Type the c character using your keyboard then press the "send" button. Under normal operation this is the same as pressing F5.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint