4 ms·
- Debug apps which don't opt into debugging, using gdb/lldb, without disabling SIP. It's my computer, I should be root, I should be able to introspect how proce
by nyanpasu64 5y ago
- Debug apps which don't opt into debugging, using gdb/lldb, without disabling SIP. It's my computer, I should be root, I should be able to introspect how processes execute on it. Not being able to do so prevented me from debugging https://github.com/samschott/maestral/issues/597 https://github.com/samschott/maestral/issues/597, since I had to disable SIP, which required rebooting, which stopped the bug from happening.
- Edit $PATH for IDEs launched from the Mac GUI (to add MacPorts/Homebrew-installed Ninja to Qt Creator's binary search $PATH). ~/.profile isn't evaluated at login time (only in terminals), /etc/paths doesn't work (forgot if it affected terminals, definitely doesn't affect GUI apps), and `launchctl setenv PATH` didn't work in my testing.
- Install libraries like SDL systemwide in paths searched by default by build systems and runtimes, like on Linux. MacPorts installs to /opt/local, Homebrew on M1 installs to /opt/homebrew, neither of which is searched by build systems. I might try setting up developer environments using Nix at some point, but I haven't learned how to use Nix/nix-darwin beyond editing the set of global apps.
- Klonoar 5y ago>- Debug apps which don't opt into debugging, using gdb/lldb, without disabling SIP. It's my computer, I should be root, I should be able to introspect how processes execute on it. Not being able to do so prevented me from debugging https://github.com/samschott/maestral/issues/597 https://github.com/samschott/maestral/issues/597, since I had to disable SIP, which required rebooting, which stopped the bug from happening. Another option is to re-sign the application with the entitlements necessary for debugging. e.g: https://gist.github.com/talaviram/1f21e141a137744c89e81b58f73e23c3 https://gist.github.com/talaviram/1f21e141a137744c89e81b58f7...