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 at breakpoint, how to step into ?? (Read 3173 times)
Tien Doan
Newbies
*
Offline


Posts: 6
Joined: Jan 15th, 2014
at breakpoint, how to step into ??
Jan 16th, 2014 at 2:47pm
Print Post  
This seems really dumb.  I think I looked at all the debug videos but nowhere this is mentioned (I assume that is b/c this should be obvious).  Well, not for me somehow.

I got the program to compile, upload, and run to the breakpoint (Micro debug=true, enable break/pause= true) but when I want to "step-into" the code (which I expect that to mean continue program execution one line at a time ?!?), a popup would appear informing me that a process is already running and do I want to re-compile and re-upload???

Confused Huh Huh
« Last Edit: Jan 16th, 2014 at 2:49pm by Tien Doan »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: at breakpoint, how to step into ??
Reply #1 - Jan 16th, 2014 at 3:25pm
Print Post  
Hi pressing F5 once will continue to the next breakpoint and again (quickly) will ask if you want to stop debug and upload. Or you can close the serial window to stop the debug.

Arduino does not have any debugging, you have to add serial.print messages to your code. This debugger does the same in the background and avoids the need for you to hack your code. As such it can only step from breakpoint to breakpoint.
  
Back to top
IP Logged
 
Tien Doan
Newbies
*
Offline


Posts: 6
Joined: Jan 15th, 2014
Re: at breakpoint, how to step into ??
Reply #2 - Jan 17th, 2014 at 6:11pm
Print Post  
Got it.  Hadn't had the time to try it out but u will hear from me if it doesn't work  Cheesy

Guess I will be using this 

http://www.visualmicro.com/post/2012/05/05/12-Make-use-of-the-DEBUG-symbol-in-ar...

a bit.

Thank you and have a nice weekend Tim.

With regards.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: at breakpoint, how to step into ??
Reply #3 - Jan 17th, 2014 at 6:30pm
Print Post  
Thanks Tien, good weekend to you too.

Interested to hear how you get on when time permits.
  
Back to top
IP Logged
 
Tien Doan
Newbies
*
Offline


Posts: 6
Joined: Jan 15th, 2014
Re: at breakpoint, how to step into ??
Reply #4 - Jan 26th, 2014 at 10:30pm
Print Post  
Hi Tim

Still can't get the debug to work properly.  I set two breakpoints, compiled the program, and uploaded it.  The program seemed to run right through the breakpoint.  As soon as I push F5, it asked whether or not I want to re-compile and download  Huh

What now??
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: at breakpoint, how to step into ??
Reply #5 - Jan 26th, 2014 at 10:44pm
Print Post  
Hi there,

Sorry, I thought you were asking about single line stepping as opposed to break/step. It's not the most obvious setting at the moment....

There is a wiki (needs improvement) on visualmicro.com. If you enter "break" into the search box on visualmicro.com the second article listed is enable break/pause which shows how to switch the debugger between trace and break modes

The debugger overview page is a good place to start, but this youtube video explains quite a bit.

« Last Edit: Jan 26th, 2014 at 10:46pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint