Monday, March 7, 2011

using winpdb to debug django

Winpdb can be downloaded from winpdb download,
it requires python-wxgtk which can be installed using synaptec


launch django server with --noreload option

Add "import rpdb2" in the view


Add "rpdb2.start_embedded_debugger("password")" in at the line where debugger should break

Launch django webserver:
python manage.py runserver --noreload


Launch winpdb:
$ winpdb


go to the url which would cause the break point to be hit, url will not load

got Winpdb, Choose file->Attach.

Enter "password", click "Ok".

winpdb tutorial

No comments :

Post a Comment