Search code examples
c++dllcommand-line-interfacerelease-modedebug-mode

Checking if Debugger is present in c++ dll (loaded in C++/CLI wrapper)


I'm checking if a debugger is present in my c++ dll with method

if(IsDebuggerPresent()) // set dll name to debug

When I load this dll in my C++/CLI wrapper (debug mode in VS) the method always returns false (release) -> why is it so? (or which code I need to determine this information)

Thank you for your help!

greets leon22


Solution

  • That was the solution: just enable unmanaged debugging ! (msdn.microsoft.com/en-us/library/tdw0c6sf.aspx)