This documentation is archived and is not being maintained.

Mixed-Mode Debugging

A mixed-mode application is any application that combines native code (C++) with managed code (code like Visual Basic, Visual C#, or Managed Extensions for C++ that runs on the common language runtime). Debugging mixed-mode applications is largely transparent in Visual Studio .NET; it is not too different from debugging a single-mode application. There are a few special considerations, however.

Note   Visual Studio does not support mixed-mode debugging on Windows 95, Windows 98, or Windows Millennium Edition.

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 may appear slow. For more information, see Stepping. If you experience poor performance in mixed-mode debugging, you may want to turn off property evaluation in the debugger windows.

To turn off property evaluation

  1. From the Tools menu, choose Options.
  2. In the Options dialog box, open the Debugging folder and select the General category.
  3. Clear the Allow property evaluation in variables windows check box.

Missing Call Stack Information

Because native call stacks and managed call stacks differ, the debugger cannot always provide the complete call stack for mixed code. When native code calls managed code, you may notice some discrepancies. For details, see Mixed Code and Missing Information in the Call Stack Window.

See Also

Debugging Managed Code

Show: