7 ms·
Does anyone know of a usable (no sudo needed) strace for Darwin / OS X?
by onedognight 15y ago
Does anyone know of a usable (no sudo needed) strace for Darwin / OS X?
- brown9-2 15y agoThis is a tangent but why is sudo needed != usable?
- jrappleye 15y agoUnfortunately, not all organizations give their users root access :-(
- dedward 15y agousualy yoh debug code with gdb Nd the like....dtrace is morevfor profiling the whole setup and figuring out where to optimize......plus you can, i believe, insrument your code with dtrace probes, even better. if a company wants their product optimized theyll have to provide the tools for it.
- onedognight 15y agoI cannot think of a single time when I'm debugging an errant program when I would like to have it run as root. I can however think of many things, like debugging permission issues, resource limit issues, reading and writing files, etc where it makes a big difference to run as root. I know you can su and then su back to yourself, but that's a pain and things aren't exactly the same anymore, i.e. there is a usability problem.
- seanp2k2 15y agoYour can send your complaints to Apple and hope that they fix it, or use free software that doesn't do stupid things like this. IMO, you kind of forfeited your right to complain when you started using non-free software.
- spullara 15y agoWith dtrace you don't run your program as root. Dtrace runs as root. It isn't a launcher like strace.
- onedognight 15y agoI'm referring to dtruss which is a launcher like strace and is built on dtrace. The dtruss "interface" predates dtrace, but historically didn't need to be run a root.
- 1amzave 15y agoThis has bugged me for quite a while, a few days ago enough so that I actually grabbed the strace source code with the intent of compiling it on OSX, at which point I discovered the real reason: ptrace on OSX doesn't support the PTRACE_SYSCALL flag. (I gave up at that point.)