【问题标题】:Debug console doesnt show any output调试控制台不显示任何输出
【发布时间】:2020-06-26 19:23:31
【问题描述】:

我正在开始 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"
         
    }
]

}

谢谢

【问题讨论】:

  • 你需要添加"console": "internalConsole",而不是reference
  • 谢谢。现在出现了一个新错误:“无法生成 laucher”“文件名、目录名或卷标语法不正确”
  • 你能在这里检查一些答案吗? stackoverflow.com/questions/39949845/…
  • 它们都不起作用。当我在 VSCode 运行 python 文件时,我仍然得到 WinError 123
  • 您能否为您的问题添加一些所有错误的屏幕截图以及它们发生的位置?

标签: windows visual-studio-code vscode-debugger


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2012-05-19
    • 2023-02-18
    • 1970-01-01
    • 2011-04-12
    • 1970-01-01
    • 1970-01-01
    • 2015-02-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多