Reputation: 12403
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 process to discover exactly which method the main thread is frozen in?
Upvotes: 2
Views: 106
Reputation: 30840
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.
Upvotes: 2
Reputation: 36349
Yes, if you have the right edition of Visual Studio. http://msdn.microsoft.com/en-us/library/c6wf8e4z.aspx
Upvotes: 1