Is there any way to see which line of code is being executed, without Breaking execution?

StackOverflow https://stackoverflow.com/questions/20859723

  •  23-09-2022
  •  | 
  •  

Pergunta

Long story short, I am debugging a big application which I didn't write. It is throwing an error when it runs on the server on which it is supposed to be run, so I am testing on my own machine with the debugger attached to see what happens.

It has thousands of lines of code, and has been running for a couple of hours now. I want to know which line of code is currently executing, so I can get a rough idea of how long is left, but I don't want to Break All as the code is...rickety.

Short of firing watchpoints all over the place in a spray and pray fashion, is there a non-invasive way to see which line of code is executing right now?

Thanks

Foi útil?

Solução

Process Explorer can show the currently executing line and call stack in the process.

Right-click a process, click Properties, and then click the Threads tab.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top