I have a large multithreaded C# program in development that loads multiple DLLs from several VS2010 projects/solutions. Debugging it proves more difficult than I expected (who'd think).
The problem is as follows. More often than not, after a few step-over and/or break-all operations, the program (or perhaps the debugger) enters into some kind of indeterminate state which is neither running nor stopped. In the Debug
menu, both Continue
and Break All
are grayed out, so I cannot continue to work with the program.
Sometimes, but not always, when this happens, I see a message in the watch windows that says:
Function evaluation disabled because a previous function evaluation timed out.
The program doesn't seem to be running (no output, no stopping on breakpoints...) and doesn't appear to be stopped also (the Watch
window is grayed out, the Call Stack
window is empty).
Stop Debugging
and Restart
commands are available and working.
Can I do anything in order to be able to debug the thing normally, without restarting the session over and over again?
I am new to development in the Windows environment, and could be missing something obvious.