microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Did not escape apostrophe in args #7213

Open jerryc05 opened 3 years ago

jerryc05 commented 3 years ago

Type: Debugger

Describe the bug

If args in launch.json contains the character ', that character is not escaped before passing to gdb.

I am encountering this issue when one of my args entries contains the character '.

To Reproduce Pass anything to args that contains ', for example:

"args": [
        "this-arg-isn't-working",
      ]

Additional context The error was:

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
zsh:1: unmatched '
sean-mcmanus commented 3 years ago

@Colengms Was this being tracked by another issue already?

sean-mcmanus commented 3 years ago

Ooops, misread the bug. It's a debugger issue. @WardenGnaw

WardenGnaw commented 3 years ago

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it.