Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

huangapple go评论80阅读模式
英文:

Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

问题

在VS Code中,是否可以使用终端作为调试过程的输入/输出源,而不是使用调试控制台(例如Node.js)?也许可以在launch.json中进行特殊配置。

当前行为:

Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

期望的行为:

Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

英文:

Is it possible to debug Go files on VS code using the Terminal as the I/O feed for the debugging process instead of the Debug Console (like with Nodejs for example)? A special config on launch.json perhaps?

Current behavior:

Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

Desired behavior:

Use "Terminal" instead of "Debug Console" as the I/O feed, when debugging in Visual Studio Code

答案1

得分: 2

"console": "integratedTerminal""console": "externalTerminal" 是在你的 launch.json 配置中的一个相对较新的功能。这个功能是在 Go 扩展 v0.31.0(2022年1月)中添加的。

英文:

"console": "integratedTerminal" or "console": "externalTerminal" in your launch.json configuration.

This is a relatively new feature that was added to Go extension v0.31.0 (Jan 2022).

huangapple
  • 本文由 发表于 2022年1月27日 17:36:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/70876267.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定