-
Notifications
You must be signed in to change notification settings - Fork 645
interactive debug console #186
Comments
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 ( |
@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. |
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. |
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. |
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)
The text was updated successfully, but these errors were encountered: