>I have been trying to set breakpoints inside a C++ DLL and running a C#
> application which calls the exported functions from the C++ DLL. However,
[quoted text clipped - 7 lines]
> Configuration Properties -> Debugging -> Command I have set my C#
> application. What more do I need to do?
There are a few things that can bite you:
1) Make sure you have one and only one copy of the DLL that you want to
debug where the IDE is likely to find it
2) If you move it from the development directory, make sure you move the PDB
file as well
3) Make sure you have optimizations switched off
4) Make sure you haven't turned off native debugging support as might be the
case by default if you are debugging a C# project
Regards,
Will
Joachim - 15 Aug 2006 17:34 GMT
Thanks Will,
I just solved it myself. This is what I did:
Properties on the C# app
Debug -> Enable unmanaged code debugging
Start the C# app
Regards,
Joachim
> >I have been trying to set breakpoints inside a C++ DLL and running a C#
> > application which calls the exported functions from the C++ DLL. However,
[quoted text clipped - 23 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 15 Aug 2006 18:22 GMT
> Thanks Will,
You are welcome.
> I just solved it myself. This is what I did:
>
> Properties on the C# app
> Debug -> Enable unmanaged code debugging
> Start the C# app
That's #4 on my list. Managed projects by default have managed debugging
enabled only.
Regards,
Will