Debugging Run-Time Errors With PDB

Now that the dialog box appearance problem is fixed, I put that code into
a function within a new class and inserted it in an existing module (the one
in which it is called).

   The dialog box should display in response to the event of a mouse click on
the "Add" button. But, it doesn't. Nothing happens.

   So, at the top of the main module I inserted 'import pdb', and just after
the function name bound to the Add button I inserted 'pdb.set_trace()'.
Still nothing happens. No pdb prompt at the command line, no reaction at
all.

   What's the accepted procedure to invoke the debugger in order to locate
the source of the run-time error?

Thanks,

Rich

···

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

As a follow up, I've tried winpdb and boa constructor, too, and cannot see
why the dialog box fails to open when the button is clicked.

   How does one go about seeing what's going on?

Rich

···

On Thu, 9 Nov 2006, Rich Shepard wrote:

Now that the dialog box appearance problem is fixed, I put that code into
a function within a new class and inserted it in an existing module (the one
in which it is called).

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

OK. I found the error in this situation.

Rich

···

On Thu, 9 Nov 2006, Rich Shepard wrote:

As a follow up, I've tried winpdb and boa constructor, too, and cannot see
why the dialog box fails to open when the button is clicked.

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863