pydoll
pydoll copied to clipboard
[Feature]: Debug Snapshot Decorator (bundle + network + traceback)
When a site changes and an automation breaks, it is often hard to reproduce the exact conditions that caused the error. Today users need to manually save the page, export the network, and collect the traceback separately.
We should add a decorator (name TBD, e.g. @debug_snapshot) that automatically captures all relevant context whenever an exception is raised. It depends on issues #245 and #244.
On failure, the decorator saves a structured folder (or zip) containing:
- bundle.zip (offline page bundle)
- network.har (recorded network)
- traceback.log (full exception traceback)
This feature makes debugging broken flows much easier, especially when the target website changes unexpectedly.