Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support input variables gdbpath setting #394

Open
FaFre opened this issue Mar 18, 2023 · 3 comments
Open

support input variables gdbpath setting #394

FaFre opened this issue Mar 18, 2023 · 3 comments

Comments

@FaFre
Copy link

FaFre commented Mar 18, 2023

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?

@WebFreak001
Copy link
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.

@FaFre
Copy link
Author

FaFre commented Mar 20, 2023

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.

@GitMensch
Copy link
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?

@GitMensch GitMensch changed the title Specify terminal support input variables gdbpath setting Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants