none
Debugging ATL & C# projects simultaneously RRS feed

  • Question

  • I need to create a solution where a part of functionality of static C++ library is exposed to managed clients via a set of  ATL  'facade' classes.
    I have a fake C# client with the atl dll in depends.
    I'm starting the fake client, I can set breakpoints in C# code. But I can't set breakpoints in ATL code.
    Looking at Debug/Modules window I can see only an Interop DLL loaded for my COM objects in ATL facade, and no base COM container DLL.
    Making a fake crush in ATL code shows me the stack without linenumbers/functionnames (not surprisingly)

    Is it normal to have only Interop DLL in Modules list?
    How could I setup my build to get breakpoints/callstacks in?

    Thanks in advance.

    Wednesday, December 17, 2008 1:24 AM

Answers

  • Switch the debugger to unmanaged mode to see the unmanaged view of modules and code.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Tuesday, December 23, 2008 8:30 AM
    Wednesday, December 17, 2008 1:31 PM
    Moderator

All replies

  • Switch the debugger to unmanaged mode to see the unmanaged view of modules and code.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Tuesday, December 23, 2008 8:30 AM
    Wednesday, December 17, 2008 1:31 PM
    Moderator
  • Thanks for reply!

    By trial and error I've got to this:
    The configuration that worked for me was: ATL project: debugging = native only, managed project: enable unmanaged code debugging. Startup project = managed.

    Wednesday, December 17, 2008 9:49 PM