【发布时间】:2021-11-05 12:14:13
【问题描述】:
每次我调试(使用外部终端)时,它都会打开一个新会话。
- 是否可以重复使用相同的窗口/会话?
- 或者如果不关闭当前窗口,使其不会继续打开新窗口?
类似的问题与内部终端有关。 我在 macOS 上使用 iTerm2。
这是我的 launch.json 配置:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File (External)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "externalTerminal",
"python": "/Users/josip/.virtualenvs/myproject-JnedzVU7/bin/python",
},
{
"name": "Python: Current File",
"type": "python",
// "justMyCode": false,
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
]
}
【问题讨论】:
标签: visual-studio-code vscode-debugger