microsoft / microsoft/vscode-cpptools
[MacOS] Debug program as root user
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The request concerns VSCode's debug start flow for a root daemon on macOS; begin by reviewing the debugger launch behavior and how macOS password prompts are handled. Done means a debug-start option prompts for elevation and runs only the target program as root, without running the rest of VSCode as root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vscode
- Domain
- devtools, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100