Skip to content

[MacOS] Debug program as root user #3155

Open

Description

Type: Debugger

I have recently been using VSCode to debug a root daemon on macOS. This is due to a current bug in XCode that means I cannot use it. I am starting VSCode with sudo and everything works fine. However I think it would be useful if there was a switch to enable an OS password prompt on debug start to run a program as root (something like gksu on Linux and UAC on Windows as well as macOS?) without running the rest of VSCode as root.

Activity

  1. pieandcakes commented on Feb 13, 2019

    @pieandcakes
    Contributor

    Harry Mallon (@hjmallon) I will mark it as a feature request. We have a similar situation on Linux where we will elevate with psexec but I don't know the corresponding side on MacOS.

  2. changed the title [-]Debug program as root user[/-] [+][MacOS] Debug program as root user[/+] on Feb 13, 2019
  3. H-G-Hristov commented on Nov 2, 2022

    @H-G-Hristov

    We also need the functionality available in Xcode to debug a daemon and run UnitTests as a root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions