mirror of https://github.com/golang/go.git
The utility of the debug server is limited by the requirement to start gopls with the `-debug` flag and then look in the logs to see which port the debug server is bound to. This CL adds a new custom command `gopls.startDebugging` to start the debug server on demand if it isn't already running, and return its debug address. It also does some gymnastics to make this turn on debugging for any intermediate gopls forwarders, when using daemon mode. For golang/go#45518 Change-Id: I48a90088f96aca54f34f93bedbfe864515320f61 Reviewed-on: https://go-review.googlesource.com/c/tools/+/309409 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||