Discussion:
Debug unmanaged C++ from C# in Visual Studio - how?
(too old to reply)
Axel Dahmen
2008-06-17 16:08:01 UTC
Permalink
Hi,

I've created a solution consisting of an unmanaged C++ dll and a C# WinForms
application.

A class in the WinForms application is supposed to call two functions from
my dll (using DllImportAttribute).

Now I want to debug into the dll code, but I can't set any breakpoint in my
C++ code. The debugger just jumps over my C# calls (like pressing F10 instead
of F11).

What do I need to do to be able to debug into my C++ code?

Any help is appreciated.
Axel Dahmen
Alex Blekhman
2008-06-18 10:22:50 UTC
Permalink
Post by Axel Dahmen
What do I need to do to be able to debug into my C++ code?
You need to go to Debugging category in the project settings
and enable both native and managed code debugging.

HTH
Alex
Axel Dahmen
2008-06-18 22:49:46 UTC
Permalink
Hi Alex,

great, works perfect! Thanks a lot!

Best regards,
Axel Dahmen



-------------------
Post by Alex Blekhman
Post by Axel Dahmen
What do I need to do to be able to debug into my C++ code?
You need to go to Debugging category in the project settings
and enable both native and managed code debugging.
HTH
Alex
Continue reading on narkive:
Loading...