[英]VS Code starts debugging in integrated terminal instead of debug console for java
Can somebody help me with this.有人可以帮我解决这个问题。 I am getting output in terminal not in debug console.
我在终端中而不是在调试控制台中获得输出。 Here is my Launch json file.
这是我的 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}"
}
]
}
Add "console": "internalConsole"
in launch.json, which specifies VS Code debug console (input stream not supported) to launch the program.在launch.json中添加
"console": "internalConsole"
,指定VS Code调试控制台(不支持输入流)启动程序。
More information about debugging, please view Launch args in Java .更多关于调试的信息,请查看Java 中的 Launch args 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.