Search code examples
visual-studiodebuggingprocessdetach

detach a debugger


How do you detach from a process in visual studio? I attach to the w3wp process and clicking on "stop debugging" kills the process :( . But I need to simply detach from it. How do I do that?


Solution

  • When I have "native, .net 4.0 and t-sql" options checked, then I can't use the "detach" button, but when I have "automatically detect" option enabled, then this button is enabled. If I attach to w3wp, then I see .net 4.0 and t-sql options enabled, if I attach to notepad.exe, then I see native code enabled. Probably trying to debug both native and .net 4.0 disables the "detach" button.