开发者

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

开发者 https://www.devze.com 2022-12-14 03:38 出处:网络
This is useful for debuggin开发者_运维百科g (hence programming related).On linux, we can use the command

This is useful for debuggin开发者_运维百科g (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?


I suppose you meant strace -fetrace=open?

dtruss -f -t open python myfile.py
0

精彩评论

暂无评论...
验证码 换一张
取 消