Search code examples
c#visual-studiodebuggingdllcomvisible

Debug com visible dll managed code


I have written a COM visible dll, which will be called from a native Win32 program. For debugging purposes I added a simple WinForms client to the solution containing the dll.

Now when I set a breakpoint in the dll, that breakpoint is hit, but I can't step through the code: the debugger always jumps to the next breakpoint in the dll, or the first line of code in the client after the call to the dll.

How can I get the debugger to step through the dll code?

I thought it might be the "Enable Just My Code" option, but that is not set.

Update jdv suggested setting "enable unmanaged code debugging" in the project properties, but that didn't have the desired effect.

Thanks, Miel.


Solution

  • There was a post VS2008 SP1 hotfix released that solves a number of debugging problems. The KB article is here, the hotfix download is here.