Remote debug a rust process as sudo #779
Unanswered
MarioHewardt
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Currently the only way to do that is via remote debugging, i.e. launch lldb-server as root, connect to it from codelldb, etc. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
OS: 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
VSCode version: 1.70.2
CodeLLDB version: 1.8.1
Compiler: rustc 1.64.0 (a55dd71d5 2022-09-19)
Debuggee: compiled rust program that needs to run as sudo in the debug session
I am able to debug my target rust app in VS code using CodeLLDB when the target app runs non-privileged. However, I need to debug the target process running as sudo (as it is a requirement). Is there any way to do this using this extension?
Beta Was this translation helpful? Give feedback.
All reactions