Breakpoint on file access
I am trying to figure out who creates certain files (requires.txt) during python setup.py sdist and breaking on file access would be awesome. Does pudb provide such option?
In the meanwhile I am using this:
$ strace -e trace=file python -m trace --trace setup.py sdist &> fulltrace.log
Not out of the box, no. But I imagine something monkey-patch-y could be hacked up that calls pudb.set_trace() on (e.g.) calls to open.
Maybe there is a way to set a dynamic breakpoint on when any variable content becomes "requires.txt"? That could help too.
I don't know that bdb can even do that, sorry.
Also related to https://github.com/inducer/pudb/issues/65. I don't know if it's an easy thing to implement.