Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints behaving strangely in visual studio

I am having two issues with the debugger using visual studio version 9.0.30729.1 using .net 3.1

Issue one - I hit a breakpoint, and F10, F11 do not move me to the next instruction. If I repeatedly press F10 I will eventually step to the next instruction. I can place another breakpoint further down in the code and do an F5 to get to the next breakpoint - but I miss the ability to step.

Issue two - I hit my first breakpoint, do an F5 or F10 and the program continues without stopping.

These issues seem to occur semi randomly. Sometimes they clean themselves up if I shut down visual studio and reboot my computer - but not always. This does not occur as often in my unit tests as with the GUI application.

Any ideas will be appreciated.

like image 410
John Chenault Avatar asked Mar 13 '26 13:03

John Chenault


2 Answers

Do you have a great deal of threads in the program? Could be Thread 1 breaks, you step, thread 2 breaks at the same point that thread 1 just broke at

like image 145
Matt Briggs Avatar answered Mar 16 '26 04:03

Matt Briggs


Just for giggles, try turning off just my code. Uncheck the "just my code ..." option under (Tools -> Options -> Debugger -> General)

JMC can cause odd behavior in scenarios you wouldn't necessarily expect.

like image 41
JaredPar Avatar answered Mar 16 '26 03:03

JaredPar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!