How do I set a Data Breakpoint in mixed( C#/C++ ) debugging?

前端 未结 4 2002
醉话见心
醉话见心 2021-02-04 01:04

I launch my program in C#, which then calls some unmanaged C++.

When I break on a line in the unmanaged C++, the \'New Data Breakpoint\' menu item is grayed out.

<
4条回答
  •  臣服心动
    2021-02-04 01:53

    So to do this I had to:

    • set the unmanaged dll as the startup project
    • set the managed program as the startup command
    • set debug mode as Native
    • "break execution" or hit a breakpoint so that you are in the "debugging" state

    yech

提交回复
热议问题