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

MacosOsx Snow-LeopardDtraceStrace

Macos 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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSetjmpView Question on Stackoverflow
Solution 1 - MacosephemientView Answer on Stackoverflow