Equivalent of strace -feopen < command > on mac os X
MacosOsx Snow-LeopardDtraceStraceMacos Problem Overview
This is useful for debugging (hence programming related). On linux, we can use the command
strace -feopen python myfile.py
to figure out which python modules and shared objects are loaded. Is there an equivalent one-liner on macOS X?
Macos Solutions
Solution 1 - Macos
I suppose you meant strace -fetrace=open
?
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/dtruss.1m.html">dtruss</a> -f -t open python myfile.py