Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging sometimes very slow

I'm using VS2008, in a normal mid-size solution.

Sometimes, debug stepping becomes very slow. A padlock gets rendered on the every file tab for every "step" (F10/F11), and it can take up to two seconds for every step. That makes debugging very annoying and slow. Has anyone seen this problem?

like image 271
kaze Avatar asked Apr 30 '09 05:04

kaze


People also ask

Why is IntelliJ debugging so slow?

Remove breakpoints off your method and use them inside the method as that can cause your debug to take a very long time. Try running IntelliJ as admin. I had this issue at work where debugging was extremely slow and running as admin actually made it a lot faster.

Why are method breakpoints slow?

Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate. Remove method breakpoints and consider using the regular line breakpoints. To verify that you don't have any method breakpoints open .

Is debug mode slower?

One of the main reasons that the debug version is significantly slower is because of these extra diagnostics. as to why you want to run in Debug, it's because those extra diagnostics are doing lots of useful stuff that help you catch bugs in your program so that you have more chance of the release build working.


1 Answers

Try turning off the "Enable property evaluation…” setting in Debugger options, it should make debugging much faster (read more: Fix: Make Debugging Faster with Visual Studio):

alt text
(source: flickr.com)

like image 66
Igor Brejc Avatar answered Sep 28 '22 07:09

Igor Brejc