C/C++教程

Visual Studio Debug only user code with Just My Code

本文主要是介绍Visual Studio Debug only user code with Just My Code,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Visual Studio Debug only user code with Just My Code

By default, the debugger skips over non-user code (if you want more details, see Just My Code).

Just My Code is a Visual Studio debugging feature that automatically steps over calls to system, framework, and other non-user code. In the Call Stack window, Just My Code collapses these calls into [External Code] frames.

Just My Code works differently in .NET, C++, and JavaScript projects.

Visual Studio Enable or disable Just My Code

For most programming languages, Just My Code is enabled by default.

  • To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.

Enable Just My Code is a global setting that applies to all Visual Studio projects in all languages.

在这里插入图片描述

C++ Just My Code

To set this compiler option in the Visual Studio development environment:

  1. Open the project’s Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
  2. Select the Configuration Properties > C/C++ > General property page.
  3. Modify the Support Just My Code Debugging property, then the setting will only apply to this project.

在这里插入图片描述

References

Tutorial: Debug C++ code - Visual Studio (Windows) | Microsoft Docs

教程:调试 C++ 代码 - Visual Studio (Windows) | Microsoft Docs

Debug user code with Just My Code - Visual Studio (Windows) | Microsoft Docs

使用“仅我的代码”调试用户代码 - Visual Studio (Windows) | Microsoft Docs

/JMC (Just My Code debugging) | Microsoft Docs

Announcing C++ Just My Code Stepping in Visual Studio - C++ Team Blog (microsoft.com)

Visual Studio C++调试技巧和窍门 | Microsoft Docs

Debugging Tips and Tricks for C++ in Visual Studio - C++ Team Blog (microsoft.com)

这篇关于Visual Studio Debug only user code with Just My Code的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!