Skip to content

support input variables gdbpath setting #394

Open

Description

@FaFre

I want to run the debugging inside an terminal that supports input to run gdb with sudo.

It seems like the terminal configuration is not there anymore, like stated in the readme:

Additionally you can set terminal if you want to run the program in a separate terminal with support for input. On Windows set it to an empty string ("") to enable this feature. On linux set it to an empty string ("") to use the default terminal emulator specified with x-terminal-emulator or specify a custom one. Note that it must support the -e argument.

image

How can I specify an external terminal instead of built-in debug console?

Activity

  1. WebFreak001 commented on Mar 18, 2023

    @WebFreak001
    Owner

    ah the problem seems to be that this is an attach request, I'm not sure if we can support it, but it may be worth looking into the source code of the GDB provider to see if we can somehow implement this.

  2. FaFre commented on Mar 20, 2023

    @FaFre
    Author

    I understood something wrong. I was thinking this parameter is for gdb itself, but turns out its for the program to execute.

    I wanted to run the gdb command inside a terminal (maybe the vscode integrated one) to enter my password on sudo promt.

  3. GitMensch commented on Aug 31, 2023

    @GitMensch
    Collaborator

    I wanted to run the gdb command inside a terminal (maybe the vscode integrated one) to enter my password on sudo promt.

    The solution to the issue at hand (I've edited the issue title for that) is to use input variables in the gdbpath setting.
    Can you already use ${input:pwd} there?

  4. changed the title [-]Specify terminal[/-] [+]support input variables `gdbpath` setting[/+] on Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions