Monday, March 4, 2013

Debug python processes like celery, locust with rdb.


insert for debug:

from celery.contrib.rdb import Rdb; Rdb(host='127.0.0.1', port=6899).set_trace()

run code and wait when debugger drops in wait state, next connect via telnet to port for debug

No comments:

Post a Comment