问题描述
我正在尝试在调试python项目之前运行脚本,但是似乎在脚本完成后卡住了。 如果我要退出脚本创建的环境(Ctrl + d),则调试会话将开始,否则,它将停留在该位置。
我认为可能会发生这种情况,因为脚本本身会采购一些文件,最后给我一个新的外壳。
我正在寻找一种在运行脚本之前运行调试器的方法。
有什么想法吗?
我的launch.json:
"version": "0.2.0","configurations": [
{
"name": "Python: Current File","type": "python","request": "launch","program": "${file}","console": "integratedTerminal","prelaunchTask": "Setup"
}
]
我的task.json:
"version": "2.0.0","tasks": [
{
"label": "Setup","type": "shell","command": "script.csh"
}
]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)