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
  •  | 
  •  

Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top