刘俊凯 发表于 2022-8-12 00:07:54

vscode 单步调试时设置——是否进入非本项目的代码

如题,在vscode中默认设置在调试时不能进入非本项目的代码(类、函数、模块),这个设置基本是OK的,因为确实没有必要进入到非本项目的代码中,但是如果有特殊需要想改变设置使其能够进入到本项目外的代码时则需要设置配置文件launch.json。
 
 
 
 
https://img2022.cnblogs.com/blog/1088037/202206/1088037-20220625161608285-796160810.png
 
 
 
 
 
当断点打在外部模块时执行单步进入时提示:
Frame skipped from debugging during step-in. Note: may have been skipped because of "justMyCode" option (default == true). Try setting "justMyCode": false in the debug configuration (e.g., launch.json).


https://img2022.cnblogs.com/blog/1088037/202206/1088037-20220625161809202-1557306879.png
 
 
 
 
==================================================
 
 
 
 
 
此时如果我们想要修改默认设置,使其单步调试时可以进入到非本项目代码中则需要设置 配置文件 launch.json , 修改内容:
"justMyCode": false   https://img2022.cnblogs.com/blog/1088037/202206/1088037-20220625162112591-1689125045.png 
 
 
 
 
 
这步设置的含义就是指调试时可以进入到本项目代码之外的代码。
 
 
https://img2022.cnblogs.com/blog/1088037/202206/1088037-20220625162731478-1149351736.png
 
https://img2022.cnblogs.com/blog/1088037/202206/1088037-20220625162807327-1662184639.png
 
 
 
 
==========================================================
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: vscode 单步调试时设置——是否进入非本项目的代码