Using the Debugger

Try adding the condition statement chris suggested (form.groups.choices) which should allow a check to see if there is any info in the groups. But this didn’t work.  Mike then helped me step through the debugger.

check that python debugger is installed

in python: import pdb

Insert debugging code into the django code

import pdb;pdb.set_trace()

Run the debugger

Run the webpage where the source is located, then open up the server terminal where you can query the debugger commands such as “form.groups” to see the value of those fields.

Continue the debugger

pressing ‘c’ lets the continue progress past the break point.  If stdin is removed from the terminal access it can be regained by: ctrl+c to kill server, and ‘reset’ to start.


Discovered that this field isn’t generated when there is no information form the person (ie: name, etc.). Will attempt to track it down with the debugger.


One thought on “Using the Debugger

  1. Pingback: Review Board and the Django Debug Toolbar | Review Board Student Blog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s