Debugging an unmanaged DLL

K

Ken Allen

I have a managed .Net assembly (C#) that invokes code in an unmanaged DLL
written in C++ 6 via an unsafe assembly that invokes the C++ routines and
marshals the data. The interface is not working properly.

Is there a way to have the C++ 6 debugger running on the unmanaged DLL when
it is invoked from the .Net debugger? I cannot step into the DLL, but can I
access it via a separate debugger?

Or am I left with instrumentation as the only debugging tool?

-Ken
 
S

Sam Gentile [MVP - C#/.NET]

If I remember correctly, with VS.NET you should be able to step into the
unmanaged code from the .NET code if you set "Native" as well as the managed
setting.

--
 
K

Ken Allen

If this works at all, I am certain that it only works with unmanaged DLLs
developed with .Net studio!

In my case the DLL is still being compiled with Developer Studio 6 while I
am doing new development in .Net, and it does not seem to permit me to cross
the DLL boundary in the debugger.

-Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top