.netvisual-studio-2008debuggingmixed-mode

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


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.

Is there anyway around this?


Solution

  • To set a data breakpoint in the native portion of a mixed mode process, see the answer posted by jyoung.

    Visual Studio disables data breakpoints when running anything but pure, native code. See this post for a partial explanation why from a VS Program Manager.