Run with Tilt, Debug with web-pdb
This directory contains an example of how to wire your app for use with web-pdb
. For more information on using remote debuggers with your Tilt setup, check out our guide to Python debuggers.
Note: for best results, use web-pdb >= v1.5.3
To see web-pdb
in action:
- Call
tilt up
from this directory - Hit
localhost:8000
; the request will hang because the app hit a breakpoint. You'll know that the debugger is live and ready for connections when you see the following in the logs:
CRITICAL - Web-PDB: starting web-server on [podname]:5555...
- In a new tab in your web browser, navigate to
localhost:5555
- Congrats, you've accessed the debugger! Poke around and inspect the system state. Type
c(ontinue)
to resume execution.