25
20
Had a sysinternals tool (filemon) for that, but now I can find something similar for the mac.
I'm a developer and I basically want to debug "file not found" or "wrong permissions" errors.
25
20
Had a sysinternals tool (filemon) for that, but now I can find something similar for the mac.
I'm a developer and I basically want to debug "file not found" or "wrong permissions" errors.
3
For viewing what files are accessed in real time you can leverage fs_usage
part of the FSEvents feature in Mac OS X or even dtrace
itself.
Usage: sudo fs_usage [PID]
.
For more info, check out the man page
fs_usage is my favorite. I wrote about it on my blog post @ http://mohit.io/blog/fs_usage-trace-file-system-calls-on-mac-os-x/ where I was stuck with Outlook that had hung and I wanted to know what it was doing on my Mac.
– mohit – 2015-03-20T19:00:32.5833
https://diigo.com/0xcp0 for highlights from Brendan's blog » Top 10 DTrace scripts for Mac OS X (2011-10-10).
For more modern operating systems that are incompatible with fseventer, there's Apple Xcode Instruments –
– powerful, but (compared to fseventer) in some cases, Instruments may be too heavyweight.
0
You can use the dtrace opensnoop script to identify failed opens (file not found and permission errors)
fseventer claims "10.10 Yosemite is classified as unsupported till further notice". is there an updated answer? are there new recommendations? – rafraf – 2015-07-14T09:55:56.030
+1 very nice answer. Btw, I've just tried FileMon and the filtering doesn't seem to work, which makes it pretty useless. fseventer is very nice. – occulus – 2013-02-27T10:59:28.750