Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Debugger does not stop on breakpoints (Read 6003 times)
Richard-D
Junior Member
**
Offline



Posts: 12
Debugger does not stop on breakpoints
Jan 12th, 2015 at 2:42pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10550
United Kingdom
Re: Debugger does not stop on breakpoints
Reply #1 - Jan 12th, 2015 at 3:01pm
 
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
Re: Debugger does not stop on breakpoints
Reply #2 - Jan 12th, 2015 at 3:29pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10550
United Kingdom
Re: Debugger does not stop on breakpoints
Reply #3 - Jan 12th, 2015 at 3:38pm
 
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
Back to top
« Last Edit: Jan 12th, 2015 at 3:45pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print