【发布时间】:2017-12-07 04:04:05
【问题描述】:
由于我无法在调试控制台中提供输入,我正在尝试在 VS Code 的外部终端中运行调试器。
这是用于外部终端的launch.json配置文件的一部分。
{
"name": "Python: Terminal (external)",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "",
"console": "externalTerminal",
"env": {},
"externalConsole": true,
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
},
我添加了"externalConsole": true 部分,正如他们所说的here 并且我尝试使用或不使用该声明。
我收到此错误,
Debug adapter process has terminated unexpectedly
我尝试了 json 文件中的 docs 和 IntelliSense,但我无法理解并让它工作。
【问题讨论】:
-
我正在使用 linux 顺便说一句,如果有帮助的话
标签: python json debugging visual-studio-code