Tuesday 30 August 2011

Plone debugging

To get an interactive debugger in your plone code:
  • add import ipdb; ipdb.set_trace() into the code
  • the set_trace function sets a breakpoint at the point in the code.

To reload the code you are debugging after you have made changes with out having to restart the service, to gohost:port/@@reload
this doesn't always work. If you get a complaint mentioning something to do with calling super then you will probably just have to live with restarting the service instead.

No comments: