Skip to content

Remote debug a rust process as sudo #778

@MarioHewardt

Description

@MarioHewardt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions