如何解决执行最后一行后,Vscode 调试器不会终止调试
我知道“CALL STACK”部分的总体作用。问题是,在我跳过代码中的最后一条语句后,调试器不会终止,而是进入 CALL STACK 中的每个项目。我发现这种行为很烦人。
这些调用来自哪里,我该如何摆脱它们?
我读到了 runpy.py
模块,它与定位 python 模块和包有关,它与运行 python 脚本时的 -m
开关有关。
这是我对 launch.json
的配置:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0","configurations": [
{
"name": "Python: Current File","type": "python","request": "launch","program": "${file}","console": "integratedTerminal","stopOnEntry": true,"justMyCode": false
}
]
}
如果你问 "stopOnEntry"
和 "justMyCode"
是做什么的,它们是我在互联网上搜索解决另一个问题几个小时的结果 -> 我的 vscode 并没有停止断点...
另外我的文件夹结构是:
test2
.vscode
Include
Lib
Scripts
file1.py
pyvenv.cfg
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。