Why cannot see COM object properties in debugger?

Heiko 1,291 Reputation points
2023-01-17T12:38:04.64+00:00

I have a WPF project (with .NETFramework). On Windows 8.1 with VS Community 2013, it is the only project in the Solution. On Windows 10 (with VS Community 2017) and on Windows 11 (with VS Community 2022) the project is part of a WPF Desktop Bridge Solution.

In VS 2013, I can see all the properties of a COM object in the debugger. In VS 2017 and VS 2022 these properties are not shown to me. Is there a setting where I can make these properties visible in the debugger? Or is this not supported by VS 2017 and VS 2022? Or is it a bug in VS 2017 and VS 2022 ?

COM-Obj_VS2013

COM-Obj_VS2022

Developer technologies Windows Presentation Foundation
Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-01-18T09:47:56.7066667+00:00

    Hi @Heiko, 

    Welcome to Microsoft Q&A! 

    If you create a new WPF project in VS2022, does it persist? 

    Please check if the “Enable native code debugging” option is checked. You can find it through right-click project > Properties > Debug

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.