问题描述
我知道“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 (将#修改为@)