How to check whether debugger of Python Tools for Visual Studio 2010 is attached to current process?
IsDebuggerPresent
and CheckRemoteDebuggerPresent
functions are not working, yet Visual Studio 2008 is able to say that it is already being debugged. Does VS2008 use some DTE methods to achieve that (enumerate running versions of VS, old and future(???) versions included, and check whether it is debugged already...?) or it is uses some other way I can use inside my application?
Note: As it turns out, WinDbg allows attachment to this process, so if you need a simultaneous debugging of C++ and Python you can try it out until this issue is resolved.