Skip to content

Instantly share code, notes, and snippets.

@Ryanb58
Created December 16, 2017 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryanb58/a09243d26ed9ed6d09788ff2a034b941 to your computer and use it in GitHub Desktop.
Save Ryanb58/a09243d26ed9ed6d09788ff2a034b941 to your computer and use it in GitHub Desktop.
Python Remote Debugger

PROGRAM WITH REMOTE DEBUGGER:

import time
from celery.contrib import rdb

while(True):
    time.sleep(1)
    rbd.set_trace()
    a = 1 + 3

On your linux box:

telnet localhost 6899

where 6899 is the port that rdb printed out when set_trace was reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment