F
Fredo
I'm using an unmanaged image library (FreeImage). It has a wrapper called
FreeImage.NET which has all the interop stuff for FreeImage.
I have the source for FreeImage and I wanted to trace into the calls, but I
can't figure out how to debug it.
What I did was compiled debug versions of everything (FreeImage,
FreeImage.NET, and my app). I copied the debug exes, DLLs and PDBs for
FreeImage, FreeImage.NET, and my app into a single directory. I then loaded
FreeImage inot VS.NET 2005 and set breakpoints where I wanted them. I went
into the project properties and in the Configuration Properties/Debugging, I
set Command to be my test app. Then I hit F5.
I can set breakpoints in the managed code, no problem (even though the
project I'm running from is unmanaged C++). When I try to set breakpoints in
the unmanaged code, it puts the little hollow red circle on the line with a
tooltip saying, "The breakpoing will not currently be hit. No symbols have
been loaded for this document"
In fact, while my app and FreeImage.NET show up as being loaded in the Debug
Output, the FreeImaged.dll (debug version of the unmanaged freeimage DLL)
never seems to appear get loaded, but it clearly is because I'm making calls
into it and they're working.
So how can I debug the unmanaged code?
Thanks.
FreeImage.NET which has all the interop stuff for FreeImage.
I have the source for FreeImage and I wanted to trace into the calls, but I
can't figure out how to debug it.
What I did was compiled debug versions of everything (FreeImage,
FreeImage.NET, and my app). I copied the debug exes, DLLs and PDBs for
FreeImage, FreeImage.NET, and my app into a single directory. I then loaded
FreeImage inot VS.NET 2005 and set breakpoints where I wanted them. I went
into the project properties and in the Configuration Properties/Debugging, I
set Command to be my test app. Then I hit F5.
I can set breakpoints in the managed code, no problem (even though the
project I'm running from is unmanaged C++). When I try to set breakpoints in
the unmanaged code, it puts the little hollow red circle on the line with a
tooltip saying, "The breakpoing will not currently be hit. No symbols have
been loaded for this document"
In fact, while my app and FreeImage.NET show up as being loaded in the Debug
Output, the FreeImaged.dll (debug version of the unmanaged freeimage DLL)
never seems to appear get loaded, but it clearly is because I'm making calls
into it and they're working.
So how can I debug the unmanaged code?
Thanks.