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 Debugger does not stop on breakpoints (Read 6937 times)
Richard-D
Junior Member
**
Offline


Posts: 12
Joined: Dec 21st, 2014
Debugger does not stop on breakpoints
Jan 12th, 2015 at 2:42pm
Print Post  
I have a working program, but I cannot get it to break into the debugger, so I can view and set watches.

When I click on 'Local Windows Debugger'  sometimes the programs starts to build, but mostly it does nothing.

When it doesn't build, I can build using the Build -> Rebuild solutions menu option. After that I have to manually upload the sketch (Project ->Upload Last Sketch Build. The program is running fine.

But when setting a breakpoint the debugger does not stop and the program keeps running.

Cleaning and rebuilding the sketch has no results. I've set ' (Micro Debug)'  to Full and ' Jump To Source'  to true.

Any ideas how to break into the debugger?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger does not stop on breakpoints
Reply #1 - Jan 12th, 2015 at 3:01pm
Print Post  
Hi,

When it doesn't build I suspect that means the debugger is running. In that case either close the serial window, click the blue square icon on the vm tool bar or press CTRL+F5.

The debugger will not stop if you have added a "when hit" message to a breakpoint but have not unchecked the "continue execution" checkbox. It also will not stop if you have ticked "tools>visual micro>trace only mode"

Thanks
  
Back to top
WWW  
IP Logged
 
Richard-D
Junior Member
**
Offline


Posts: 12
Joined: Dec 21st, 2014
Re: Debugger does not stop on breakpoints
Reply #2 - Jan 12th, 2015 at 3:29pm
Print Post  
The blue square was hidden, somehow it appeared again and indeed after clicking this the build functioned OK again. But after restarting Visual Studio the blue square has vanished again. Right clicking the menu bar and selecting 'Arduino Serial Communications'  makes the square briefly visible (greyed out) but it disappears after half a second or so.

I've unticked the 'trace only'  box, but still the debugger does not break making it possible to set watches. Strangely the program is stopped apparently at the breakpoint.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger does not stop on breakpoints
Reply #3 - Jan 12th, 2015 at 3:38pm
Print Post  
The trace only is off by default so hopefully you agree that you switched it on?

The blue square should be active when the debugger is running, can you post a screen image when it disappears so I can see if a tool bar is covering it?

What is displayed in the output trace when the arduino is stopped at the breakpoint?

Thanks
« Last Edit: Jan 12th, 2015 at 3:45pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint