Visual studio code 在vscode调试之前运行脚本
我试图在调试python项目之前运行一个脚本,但似乎在脚本完成后它就卡住了。 如果我退出脚本创建的环境(Ctrl+d),调试会话将启动,否则,它将被卡住 我认为这可能是因为脚本本身提供了一些文件,最后给了我一个新的shell 我正在寻找一种在运行脚本之前运行调试程序的方法 有什么想法吗 My launch.json:Visual studio code 在vscode调试之前运行脚本,visual-studio-code,vscode-settings,vscode-debugger,Visual Studio Code,Vscode Settings,Vscode Debugger,我试图在调试python项目之前运行一个脚本,但似乎在脚本完成后它就卡住了。 如果我退出脚本创建的环境(Ctrl+d),调试会话将启动,否则,它将被卡住 我认为这可能是因为脚本本身提供了一些文件,最后给了我一个新的shell 我正在寻找一种在运行脚本之前运行调试程序的方法 有什么想法吗 My launch.json: "version": "0.2.0", "configurations": [ {
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"preLaunchTask": "Setup"
}
]
My tasks.json:
"version": "2.0.0",
"tasks": [
{
"label": "Setup",
"type": "shell",
"command": "script.csh"
}
]