locked
Debugging a WinRT Component DLL while running a C++ Metro App

    Question

  • Hello,

        My C++ Metro app references a C++ WinRT component DLL that's building in my solution. I can successfully build, deploy and run, but when I debug my C++ app, I can't step into the C++ WinRT component DLL code.

        if C# Metro app references a C++ WinRT component DLL, then add following code in the c# project: 

      <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
        <EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
      </PropertyGroup>

       but, if c++ Metro app references a C++ WinRT component DLL, then how to do it?

    Wednesday, February 8, 2012 9:27 AM

All replies

  • I assume you are trying to F11, step (in the debugger) from the App C++ code to the WinRT C++ code? In the Developer Preview, set a BP on method your calling in the WinRT component.

    Debugging across component boundaries should improve in future releases.

    Thanks,

    -David

    Wednesday, February 8, 2012 11:11 PM
    Moderator
  • "In the Developer Preview, set a BP on method your calling in the WinRT component."

    So you can enter the C++ WinRT component DLL, but can't look at local variable in the debug.

    Thursday, February 9, 2012 2:48 AM