Run with Tilt, Debug with remote-pdb
This directory contains an example of how to wire your app for use with remote-pdb
. For more information on using remote debuggers with your Tilt setup, check out our guide to Python debuggers.
To see remote-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:root:RemotePdb session open at 127.0.0.1:5555, waiting for connection … RemotePdb session open at 127.0.0.1:5555, waiting for connection …
- In a separate terminal window, open a TCP connection to
localhost:5555
, e.g. via Netcat:nc 127.0.0.1 5555
- The remote-pdb guide has some other connection options, if you prefer.
- Congrats, you've accessed the debugger! Poke around and inspect the system state. Type
c(ontinue)
to resume execution.