Re: Debug unmanaged C++ from C# in Visual Studio - how?



Did you build the C++ as debug with symbols?

--
The personal opinion of
Gary G. Little

"Axel Dahmen" <keentoknow@xxxxxxxxxxxxxxxx> wrote in message
news:F39ED752-DE16-496B-99CC-C80CF8A3F1C8@xxxxxxxxxxxxxxxx
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 unfortunately 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


.



Relevant Pages

  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: running a service/driver/application upon startup
    ... Would it be possible for you to drop a debug services.exe and debug nk.exe ... > I ran dumpbin/exports on the finger dll and saw the required function ... >> theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: technical/OS problem (windows xp?)
    ... Build a debug version of the ISAPI DLL. ... Create a virtual root with execute permissions in the IIS Management ... Add your ISAPI extension or filter DLL to the list. ...
    (alt.marketing.online.ebay)
  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: How to export a class that inherits from unmanaged exception class
    ... Static linking means your application is self standing and doesn't depend on any non-system DLL. ... Debug or release version. ... In a VC++ project you can't successfully mix debug and release units -- you have to compile all your units with either debugging enabled or disabled uniformly. ...
    (microsoft.public.dotnet.languages.vc)

Loading