Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

interactive debug console #186

Closed
gertcuykens opened this issue Jan 28, 2016 · 4 comments
Closed

interactive debug console #186

gertcuykens opened this issue Jan 28, 2016 · 4 comments
Labels

Comments

@gertcuykens
Copy link
Contributor

Is it possible to make the console interactive so you can do delve commands in the console
For example to set trace main.go:13 i

Currently I get this when I try for example the delve help command.

exception while processing request (exception: Cannot read property 'currentGoroutine' of null)

image

@lukehoban
Copy link
Contributor

Right now, the debug console evals Go expressions, much like the JS Console windows in browser dev tools. It is not a top level Delve REPL.

The design of Delve actually makes it a little challenging to provide a Delve REPL directly here, since the Delve backend RPC API knows nothing about the Delve REPL front-end.

We may in the future be able to expose the Delve REPL directly here - potentially with some appropriate escape character prefix (!threads?). But that likely will require some refactoring of Delve that I expect won't happen in the short term.

@quoctruong
Copy link
Contributor

@gertcuykens I don't think the debug console is an appropriate place to run delve command interactively. If there's any delve commands that are not hooked up to the extension, we can add them in instead.

@gertcuykens
Copy link
Contributor Author

gertcuykens commented Sep 13, 2019

Isn't the appropriate place for technical reason because of RPC interface I agree, but from a pure development standpoint I think a good amount of people will launch dlv in the terminal just to have this ability and don't have to click anything. Try dlv cmd line a few times, it makes you wish for a hybrid cmd line where vscode just highlight the variables and line of code while the cmd line does everything else.

@ramya-rao-a
Copy link
Contributor

Based on the current state of delve and this extension, the ability to run delve commands in the debug console is not possible at the moment.

If at a future time anything changes to make it possible to have this feature we can re-open this issue or create a new feature request, but for the time being, I am closing this issue as there is no action item at present.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants