Sometimes it seems that pudb is not returning control back to zope because it stays on top (no screen redraw) but hit some key and if the keycode appears in the upper left corner you're out of pudb.

Todo: When quitting pudb redraw screen (problem in zope perhaps due to no SIGWINCH sent) - could be fixed by explicitly resetting screen upon exit