strace -feopen 的等效项命令>在 Mac OS X 上

发布于 2024-08-15 02:27:12 字数 152 浏览 3 评论 0原文

这对于调试很有用(因此与编程相关)。在linux上,我们可以使用该命令

strace -feopen python myfile.py

来找出加载了哪些python模块和共享对象。 macOS X 上是否有等效的单行代码?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

递刀给你 2024-08-22 02:27:12

我想你的意思是strace -fetrace=open

dtruss -f -t open python myfile.py

I suppose you meant strace -fetrace=open?

dtruss -f -t open python myfile.py
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文