Monday, May 24, 2010

I am calling a function in a C DLL that I wrote from C#. How do I trace into it with the debugger?

you need to start the debugger with the ability to trace into managed and native code.


I have acomplished that by starting the application from the command line, then attached the debugger to the process and in the dialog selected both managed and native code.


In VS2005 go to Debug menu, select attach to process in the dialog that appears in the middle of the dialog you will see where you can select what kinds of code you want to debug.


Hope this helps.

I am calling a function in a C DLL that I wrote from C#. How do I trace into it with the debugger?
Try this instead: under the properties tab of the solution, check 'enable unmanaged code debugging'. You should be able to debug right into the DLL. BTW, if you had, say, c++ code calling managed code (and yes, it can be done), you'd select Debugger Type=mixed under the solution's properties.

lady palm

No comments:

Post a Comment