Is it possible to use process explorer to kill a recursive loop generated in visual studio?
Sometimes I incorrectly code something and I create a thread that enters a never ending loop. this means I have to shut down the entire visual studio. Is it possible to use process explorer to inspect the visual stud开发者_如何学Pythonio process and shut down the thread that is killing the cpu?
Pete
Erm... yes? Normally you can just press "stop" (shift+f5) when debugging, but otherwise just locate your app (in task manager or any other tool; typically just a case of sorting by CPU usage) and end the process. VS will treat that as your process exiting, but VS itself should be fairly unharmed.
No, you can't use Process Explorer to kill a single thread. You kill the entire process. You could use SysInternals procexp.exe to analyze processes and threads and kill only a single thread within a given process. Very nifty tool. But in general avoid coding never ending loops :-)
Yes you can.
But doesn't the Visual Studio Debugger have an 'stop'-button or something alike?
精彩评论