I noticed that in vscode, if I specify "\xD0\x00"
in launch.json like so, the backslash gets removed, and the argument ends up becoming like "xD0x00"
.
If the argument is in the form of "xD0x00"
, it ends up becoming like "D000"
.
How do I pass the argument so that it gets picked up as "xD0x00"
?
"configurations": [
{
"name": "gcc.exe - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\${fileBasenameNoExtension}",
"args": [
"-p",
"\xD0\x00"
],
2
Answers
I ended up using passing '"\xD0\x00"' as argument in launch.json.
This argument gets passed as "xD0x00", with an extra function to looking for the double "" instead of a single "".
You can try the following ways, which may help you.
/xD0/x00