I am writing a multithreaded Windows application in Microsoft Visual C # 2008 Express Edition. The debugger has been acting weird lately.
While I go through the lines of code with F10, sometimes it interprets my Step by Step command (F10) as well as the Continue command (F5), and then the program resumes and the debugging session is completed.
Does anyone know why this is happening? In what circumstances does the Step Over command stop the debugger?
This is not a problem with code debugging: it happens not only in certain lines of code. This happens on a random line, which is different each time the debugger starts.
This is not a problem with my keyboard: the same thing happens when I just click the Step-by-Step button on the Debug toolbar.
This may be a problem with other threads in my program. Perhaps one of them randomly does something that has the side effect of interrupting the debugger. Is it possible?
Thanks in advance!
source
share