You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
How can I specify an external terminal instead of built-in debug console?
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.
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?
Activity
WebFreak001 commentedon Mar 18, 2023
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 commentedon 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 commentedon Aug 31, 2023
The solution to the issue at hand (I've edited the issue title for that) is to use input variables in the
gdbpathsetting.Can you already use
${input:pwd}there?[-]Specify terminal[/-][+]support input variables `gdbpath` setting[/+]