question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Word completion during debugging

See original GitHub issue

@renkun-ken I have seen that you did some work on the R language server https://github.com/REditorSupport/languageserver. The debug protocol also offers a possibility to have word completions from a debug session using CompletionRequests:

    interface CompletionsRequest extends Request {
        arguments: CompletionsArguments;
    }
    /** Arguments for 'completions' request. */
    interface CompletionsArguments {
        /** Returns completions in the scope of this stack frame. If not specified, the completions are returned for the global scope. */
        frameId?: number;
        /** One or more source lines. Typically this is the text a user has typed into the debug console before he asked for completion. */
        text: string;
        /** The character position for which to determine the completion proposals. */
        column: number;
        /** An optional line for which to determine the completion proposals. If missing the first line of the text is assumed. */
        line?: number;
    }
    /** Response to 'completions' request. */
    interface CompletionsResponse extends Response {
        body: {
            /** The possible completions for . */
            targets: CompletionItem[];
        };
    }

(from vscode-R-debugger\node_modules\vscode-debugprotocol\lib\debugProtocol.d.ts)

Do you think this would be possible/easy to implement using existing code?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
renkun-kencommented, Jun 1, 2020

https://github.com/ManuelHentschel/vscDebugger/pull/24

Adds completion of installed packages, language constants, and lazydata.

0reactions
renkun-kencommented, Jun 5, 2020

Now the completion in debug console is quite complete.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Completion (Debugging with GDB) - sourceware.org
GDB can fill in the rest of a word in a command for you, if there is only one possibility; it can also...
Read more >
Debugging with - Completion
Go to the first, previous, next, last section, table of contents. Command completion. can fill in the rest of a word in a...
Read more >
Debug console auto-completion interferes and messes up my ...
Basically I typed (int) and then pressed enter to run the command; What happens is that the auto completion thinks I want to...
Read more >
Navigate through code by using the Visual Studio debugger
Shift+F11, Step Out, Step Out continues running code and suspends execution when the current function returns. The debugger skips through the ...
Read more >
Debugging with GDB - Command completion
GDB can fill in the rest of a word in a command for you, if there is only one possibility; it can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found