You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rbspy has this great feature where you can just use sudo on macOS, and rbspy will drop root privileges when executing the script. This should allow to just run "sudo py-spy ..." instead of having to first find the PID, and then run py-spy with sudo.
On OSX we usually have to get sudo access to run py-spy. Rather than pass
root permissions on to the program we are profiling, drop root when
creating the child process.
#116
rbspy has this great feature where you can just use sudo on macOS, and rbspy will drop root privileges when executing the script. This should allow to just run "sudo py-spy ..." instead of having to first find the PID, and then run py-spy with sudo.
This is where it seems to be implemented in rbspy: https://github.com/rbspy/rbspy/blob/806ace599aa8e7de99c2134935c0fe1047bc6803/src/main.rs#L164-L179
PS: Thanks for py-spy! It's a great project, and the recent release is even more useful with the removed perl dependency. 💚
The text was updated successfully, but these errors were encountered: