views:

184

answers:

1

Is there a way to find out the current execution of the code to find out the infinite loop?

I have the application running with the current source. I'm attached with the visual studio debugger. I just need to know where the code is currently at so that I can debug it further.

+7  A: 

If you're running it from Visual Studio, you can pause the execution with the 'pause' button in the code page. The current line will be in green.

David Brunelle
Exactly what I was looking for. Now I have to wait 12 minutes to accept your answer. :)
jdelator
11 minutes now...
Atømix
also make sure you have compiled/are running in the debug configuration. If you compiled for release then you don't get the debugging feature mentioned.
gbogumil
@gbogumil : That actually depends. Sometime I compile in Release and still get the informations. However, it's not always the case, so yes, Debug is the best alternative.
David Brunelle