【问题标题】:VS Code starts debugging in integrated terminal instead of debug console for javaVS Code 在集成终端而不是 java 的调试控制台中开始调试
【发布时间】:2021-02-18 03:04:41
【问题描述】:

有人可以帮我解决这个问题吗?我在终端而不是在调试控制台中获得输出。 这是我的 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": [
   {
            "type": "java",
            "name": "Debug (Launch) - Current File",
            "request": "launch",
            "mainClass": "${file}"
        }
  ]
}

【问题讨论】:

    标签: java visual-studio-code terminal console vscode-debugger


    【解决方案1】:

    在launch.json中添加"console": "internalConsole",指定VS Code调试控制台(不支持输入流)启动程序。

    更多调试信息,请查看Launch args in Java

    【讨论】:

      猜你喜欢
      • 2018-09-09
      • 2018-07-31
      • 1970-01-01
      • 2018-12-18
      • 2023-02-04
      • 2020-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多