首页 > 解决方案 > 调试控制台不显示任何输出

问题描述

我开始上 Python 基础课程并尝试使用 Vscode 运行一些初始代码。观看课程视频后,我注意到我在 DEBUG CONSOLE 下看不到任何输出。我确实在 TERMINAL 部分下得到了输出。另外,我注意到调试图标与视频中的图标不同(我的有一个播放箭头)。

我错过了什么吗?

我的蟒蛇

C:\Users\andres>py --version
Python 3.8.3

我目前的 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": "Python: Current File",
        "type": "python",
        "request": "launch",
        "program": "${file}",
        "cwd": "",
        "console": "integratedTerminal"
         
    }
]

}

谢谢

在此处输入图像描述

标签: windowsvisual-studio-codevscode-debugger

解决方案


感谢@tHeSiD 的初步建议。对于 winerror123,我删除并重新创建了 json 文件


推荐阅读