In Windows, Sysinternals (now Microsoft) programs FileMon and TcpMon allows things like if a process access a file and if it has trouble accessing, due to lack of permissions for example, and find out if some files or registry entries or something is missing…. and so on. It allows a very fast way to debug installation problems for example.
For Linux, an alternative is to execute the strace program:
strace -fo outputfile command&
tail -f outputfile
With the last command we can monitor in real time the process activity being done by the first command (the strace).
Because the output of the strace command is in the outputfile, you can after the monitoring session, process this file with tools like grep, cut and so on to search for the bit of information you need to know.