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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值