VS Arduino
>> >> Debugger does not stop on breakpoints
https://www.visualmicro.com/forums/YaBB.pl?num=1421073739

Message started by Richard-D on Jan 12th, 2015 at 2:42pm

Title: Debugger does not stop on breakpoints
Post by Richard-D on 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?

Title: Re: Debugger does not stop on breakpoints
Post by Visual Micro on 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

Title: Re: Debugger does not stop on breakpoints
Post by Richard-D on 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.

Title: Re: Debugger does not stop on breakpoints
Post by Visual Micro on 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

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.