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.

Visual Studio Debug only user code with Just My Code

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.

Visual Studio Debug only user code with Just My Code

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)

上一篇:drf 序列化的写法 总结


下一篇:@media移动PC端fontSize响应设置