Equivalent of strace -feopen < command > on mac os X
I suppose you meant strace -fetrace=open? dtruss -f -t open python myfile.py
I suppose you meant strace -fetrace=open? dtruss -f -t open python myfile.py
You can give a try to the library https://github.com/bndr/pipreqs found following the guide https://www.fullstackpython.com/application-dependencies.html The library pipreqs is pip installable and automatically generates the file requirements.txt. It contains all the imports libraries with versions you are using in the virtualenv or in the python correctly installed. Just type: pip install pipreqs pipreqs /home/project/location It will … Read more
Under current versions of macOS, executables under paths covered by SIP (like /usr/bin) cannot be traced. You can bypass this by making a copy of the executable in your home directory and tracing the copy: cp /usr/bin/find find codesign –remove-signature ./find sudo dtruss ./find … You needed to remove the code signature from the new … Read more
If you are using Docker, you will probably need these options: docker run –cap-add=SYS_PTRACE –security-opt seccomp=unconfined If you are using Podman, you will probably need its –cap-add option too: podman run –cap-add=SYS_PTRACE
A few options: Process Monitor Also, see this article about tools built into Windows 7: Core OS Tools
Strace Overview strace can be seen as a light weight debugger. It allows a programmer / user to quickly find out how a program is interacting with the OS. It does this by monitoring system calls and signals. Uses Good for when you don’t have source code or don’t want to be bothered to really … Read more