views:

29

answers:

2

Is it possible to attach once in native, then open second VStudio window and attach in managed mode?

+1  A: 

You can attach WinDbg as non-invasive, which allows you to attach even if another debugger such as VS is already attached. There's a check-box in the popup for Attach to process.

However, doing so will not allow you to control the application from WinDbg as only one debugger may control the debuggee. You can still view memory, threads, etc. (and you can load SOS/PSSCOR2 to inspect managed data).

Brian Rasmussen
A: 

You can only do this in .NET 4.0

halivingston