views:

21

answers:

1

my debugging in visual studio 2008 has stopped working , the debugger doesn't hit any breakpoint . what should i do?

+1  A: 

Make sure that you're not trying to debug the release build.

ho1
its final version
mazhar kaunain baig
@mazhar: It has nothing to do with the version of VS. When you build a project in VS you can choose to build it in Release mode or Debug mode. If you build it in Release mode, depending on the settings, it might not contain debugging information (by default I think especially in VC++), and so the breakpoints won't be hit.
ho1
@mazhar: Actually, what language are you developing in?
ho1
i am developing in c#
mazhar kaunain baig
@mazhar: Depending on how your VS is setup, you might see the Solution Configurations combo on a toolbar in VS, if so, is that set to `Debug` or `Release`? If `Release` change to `Debug`, otherwise if already set to `Debug`, try to restart Visual Studio and delete the *.suo files in the project and see if that makes any difference (maybe do Rebuild All as well).
ho1
ok checked it all seems well but no debug
mazhar kaunain baig
@mazhar: Try to start the debugging with F10 (Step Over) rather than F5 or similar and assuming that works to start stepping through the code, set a breakpoint at the very line that you started on when pressing F10 and see if that works. Maybe there's some issue with your app so it never gets to any of the breakpoints?
ho1