Home > Software engineering >  Debugging Go in VS code
Debugging Go in VS code

Time:02-03

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:

enter image description here

Desired behavior:

enter image description here

CodePudding user response:

"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).

  •  Tags:  
  • Related