Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A mixed-mode application is any application that combines native code (C++) with managed code (such as Visual Basic, Visual C#, or C++ that runs on the common language runtime). Debugging mixed-mode applications is largely transparent in Visual Studio. It's not too different from debugging a single-mode application. There are a few special considerations, however.
Enable C++ Edit and Continue in Mixed Mode Debugging
To enable Edit and Continue for C++, see How to enable and disable Edit and Continue.
Property Evaluation in Mixed-Mode Applications
In a mixed-mode application, the evaluation of properties by the debugger is an expensive operation. As a result, debugging operations such as stepping might appear slow. For more information, see Navigating code in the debugger. If you experience poor performance in mixed-mode debugging, you might want to turn off property evaluation in the debugger windows.
Note
The dialogs and menu commands you see might differ from the UI described in Help depending on your active settings or edition. To change your settings, select the Import and Export Settings option on the Tools menu. For more information, see Reset all settings.
To turn off property evaluation
- In the Tools > Options pane, expand the All Settings > Debugging > General section.
- In the Tools > Options dialog, expand the Debugging > General section.
Clear the Enable property evaluation and other implicit function calls option checkbox.
When you disable this option, the Call string-conversion function on objects in variables windows option is automatically disabled.
Because native call stacks and managed call stacks differ, the debugger can't always provide the complete call stack for mixed code. When native code calls managed code, you might notice some discrepancies. For more information, see Mixed Code and Missing Information in the Call Stack Window.