Debugging of applications that root (sudo) privileges is possible, though currently limited to external console applications. This is because of the prompt (terminal input) required to capture the password.
Python Console App
debug configuration, when debugging the applicationsudo
to debugOptions
as follows: {
"name": "External Terminal/Console",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config.python.pythonPath}",
"program": "${file}",
"cwd": "null",
"console": "externalTerminal",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"Sudo"
]
},
Debugging of applications that root (sudo) privileges is possible, though currently limited to external console applications. This is because of the prompt (terminal input) required to capture the password.
Python Console App
debug configuration, when debugging the applicationsudo
to debugOptions
as follows: {
"name": "External Terminal/Console",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config.python.pythonPath}",
"program": "${file}",
"cwd": "null",
"console": "externalTerminal",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"Sudo"
]
},