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 I'm still trying to get the debugger working, but it won't stop on the break points. (Read 3971 times)
SirMichael
Junior Member
**
Offline


Posts: 12
Joined: Apr 10th, 2014
I'm still trying to get the debugger working, but it won't stop on the break points.
Nov 11th, 2014 at 4:31am
Print Post  
Hi,

I'm still trying to get the debugger working, but it won't stop on the break points. 

I did finally find the Local Speed and Remote Speed and both are set to 115200, as is my project. 
    Serial.begin(115200);

Micro Debug "Enable Break/Pause" is set to "True" and under the Misc, the (Micro Debug) is set to Full.
   What am I missing?

I know how to use breakpoint in C# in a standard Visual Studio compiler, so I would hope that this would work somewhat similar. 

SirMichael
« Last Edit: Nov 11th, 2014 at 1:17pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I'm still trying to get the debugger working, but it won't stop on the break points.
Reply #1 - Nov 11th, 2014 at 1:20pm
Print Post  
Hi,

I split your question into a new thread so that others can find it more easily thanks.

Break/pause is on by default via a recent feature called "Tools>Visual Micro>Debug Trace Only" and "Automatic Debugging". The docs will be updated shortly.

So this means you were up and running and maybe just needed to untick the "Continue Execution" checkbox on the Break Point "When Hit" property. The checkbox is automatically checked when you add a "When Hit" message which is part of the std Ide functionality.

Hope that help?
  
Back to top
IP Logged
 
SirMichael
Junior Member
**
Offline


Posts: 12
Joined: Apr 10th, 2014
Re: I'm still trying to get the debugger working, but it won't stop on the break points.
Reply #2 - Nov 12th, 2014 at 3:49am
Print Post  
Sorry, but I'm still very frustrated.  I'd like to get the debugging to work.

I did manage to somehow get the Breakpoints to work when I had a breakpoint set on the "loop()" statement.
  However, I couldn't get it do anything other than continue on, execute another full loop, then stop again on the same statement.  It would do this EACH time I pressed the F10, or F11 key.  it wouldn't run a step or step-into as I would expected.

I was able to get the "run to cursor" to somewhat work, where it appeared to stop where my cursor was, but then it would only "run" again. 

What's more, when it does stop on the loop() statement, the "Stop" button at the top (like the ">" run button) does not allow me to stop the debugging so that I can try to download another version.   I seem to have to power down everything in order to upload another updated version of code to the Arduino. 

Question:  is there some kind of special code that gets downloaded to the Arduino (I'm using an UNO) that tells the IDE when it has stopped?  

I've been studying the page:
  http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Modes.html
but I can't get the debugger to act like anything that I'm used to such as step, step-into, display watch values, etc.

SirMichael
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I'm still trying to get the debugger working, but it won't stop on the break points.
Reply #3 - Nov 12th, 2014 at 1:00pm
Print Post  
Hi,

The debugger can only step between breakpoints not code lines

The debugger uses serial so you can also stop debug by closing the serial window or un-ticking the connect

F5 is the normal way to progress to the next breakpoint.

The debugger uses serial because arduino does not normally have debug. The serial code for each break point is injected during compilation.

Please show a scree shot of the stop button you are talking about

SHIFT+F5 should also stop the debugger

You should be on the July build. Your version number is shown in tools>options>visual micro>version

Thanks
« Last Edit: Nov 12th, 2014 at 1:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint