Groups | Blog | Home
all groups > visual studio .net debugging > march 2004 >

visual studio .net debugging : Can't debug my unmanaged dll


sonofdaedalus NO[at]SPAM hotmail.com
3/16/2004 12:40:11 PM
Hi all, I have the following problem:

I have an unmanaged dll that I would like to debug. I have the dll
project opened in .NET and I specify the executable (built with C#)
from the debugger. When I run, the program works fine, but whenever I
try to add a breakpoint, I get the little question mark indicating
that the symbols aren't loaded. And I never hit my breakpoints.

In VC6, I had no problem debugging this same dll with the same
executable.

I've tried changing the "Debugging type" from "Auto" to "Mix" to
"Native Only" but none seem to work. I've tried changing the symbol
path to point directly to the directory with the .pdb. I've tried just
about every relevant option I could find... and I saw on the forums
that some people experienced the this same problem, but I did not see
any solutions in the threads.

Has anyone ran into this? What is the issue?

Thanks,
Andy

robgruen NO[at]SPAM online.microsoft.com
3/18/2004 8:43:30 PM
Andy,

You'll need to set the Mixed debugging option as you've stated. You'll
also have to specify the additional symbol and source path (where the
unmanaged dll files are) under the properies for the solution. When you
start to debug you can check the output window to verify if symbols were
loaded for your unamanged component.

Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
AddThis Social Bookmark Button