Detecting which tasks modfied a file

I’m finding scenarios when using continous builds where the build will run several times over before stabilizing and staying “awaiting changes”. I believe this is due to some task modifying the inputs of others (possibly due to a misconfigurtion or missing dependency to enforce execution order), however, there seems to be no straightforward way to detect which task may be the culprit.

How can I detect which tasks are editing a specific file? I’ve tried running with --debug, but the log is not explicit enough as to what files are being edited by each task.