问个VSCODE的问题,.py程序没法调试。
本帖最后由 ilsoviet1917 于 2022-2-21 14:15 编辑.py程序按F5后vscode没反应,点击运行调试也没反应,也没错误提示,就什么反应也没有。解释器路径也没问题,以前一直好好的,结果升级以后就变成这样了。
setings.json如下
{
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"security.workspace.trust.untrustedFiles": "open",
"editor.fontSize": 25,
"scm.inputFontSize": 30,
"debug.console.fontSize": 30,
"terminal.integrated.fontSize": 25,
"python.defaultInterpreterPath": "C:\\Users\\DELL\\AppData\\Local\\Programs\\Python\\Python39\\python.exe",
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
}
}
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": "Extension",
"type": "extensionHost",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
],
"outFiles": [
"${workspaceFolder}/out/**/*.js",
],
}
]
}
求解是怎么回事啊? vs code要安装python插件,并且选择电脑上的python解释器才能调试 云龙烛火 发表于 2022-2-22 14:55
vs code要安装python插件,并且选择电脑上的python解释器才能调试
你说的我都做了呀,以前一直没问题,后来升级两次就这样了。
页:
[1]