Equivalent of strace -feopen < command > on mac os X

[亡魂溺海] 提交于 2019-12-17 08:01:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!