Do you have local variables that display the result of queries when you call
? If so, these are being evaluated on each step, which is why you are hitting the DB so often. (FWIW, these objects should not being doing this - accessing the DB for
is okay, but
is only supposed to produce enough information to recreate the object, not the results.)
As a workaround, you can modify the
file in your
(and I see I need to update that page for 2.1... I'm sure you'll find it :) ) and add a type check to
. If you call
, then it will quickly display something like
'<Spam object at 0x00123456>'
instead of going to the DB (or if it has some other method for displaying the query you can use that).
We should really come up with a way to specify these without having to modify the source code, but then again, this way you get the freedom to make arbitrary changes to the debugger :)