问题
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?
回答1:
I suppose you meant strace -fetrace=open
?
dtruss -f -t open python myfile.py
来源:https://stackoverflow.com/questions/1925978/equivalent-of-strace-feopen-command-on-mac-os-x