How to identify which php file a plugin is using on page load?

I am not a real dev, but which helps me in some cases: “Query Monitor”.
After all, I think you have to start searching backward, step by step and dive into each function.