Following the instructions in: https://nadiah.org/2020/03/01/example-debug-mixed-python-c-in-visual-studio-code/
I ran into a strange error. In step five it reads:
In the terminal, VS Code will tell you that superuser access is required to attach to a process. Type in Y and enter the root password.
However I can't type 'Y' since an extra line is added when I am asked if I want to continue as a super user. See image:
My launch.json is:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceRoot}/venv/bin/python", /* My virtual env */
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
I tried to launch VS Code as a super user to no avail. Adding sudo to 'MIMode' is not valid either.
I tried the solutions proposed in https://github.com/microsoft/vscode-cpptools/issues/4988 to no avail either.
Help is very much appreciated !