This section describes how to view logs for the Go language server.
Finding the gopath
This section describes how to find where the GOPATH variable points to.
Procedure
-
Execute the
Go: Current GOPATHcommand.
Viewing the Debug Console log for Go
This section describes how to view the log output from the Go debugger.
Procedure
-
Set the
showLogattribute totruein the debug configuration.{ "version": "0.2.0", "configurations": [ { "type": "go", "showLog": true .... } ] } -
To enable debugging output for a component, add the package to the comma-separated list value of the
logOutputattribute:{ "version": "0.2.0", "configurations": [ { "type": "go", "showLog": true, "logOutput": "debugger,rpc,gdbwire,lldbout,debuglineerr" .... } ] } -
The debug console prints the additional information in the debug console.
Viewing the Go logs output in the Output panel
This section describes how to view the Go logs output in the Output panel.
Procedure
-
Navigate to the Output view.
-
Select Go in the drop-down list.