Debugging an ongoing .net process
I have a rather annoying bug in a program I'm writing which only ever manifests itself as the program freezing when it is run without the debugger attached. Worker threads stay alive but the main thread freezes and windows fades the window out to white and tells me the program isn't responding.
Is there a way to attach a debugger to an ongoing .net p开发者_开发技巧rocess to discover exactly which method the main thread is frozen in?
You can attach the debugger using Debug > Attach to Process option.
It will list all the processes and you select your process to start debugging.
Yes, if you have the right edition of Visual Studio. http://msdn.microsoft.com/en-us/library/c6wf8e4z.aspx
精彩评论