Re: using pdb and catching exception

2007-12-06 Thread R. Bernstein
Just checked to see how Ruby deals with this. Both languages allow one to register a trace functon to catch "events" like call, line, return, exception, etc. Ruby however register an event before the raise takes place. It might be cool for some good person to go through the process of making a for

Re: using pdb and catching exception

2007-12-04 Thread Diez B. Roggisch
Amit Gupta schrieb: > On Dec 3, 11:10 am, Amit Gupta <[EMAIL PROTECTED]> wrote: >> >> Thanks Frank. But again, this results into stack-track when the >> exception is caught. On the other hand, I would like the debug-trace >> just before throwing the exception. As a case, I might be debugging >> cod

Re: using pdb and catching exception

2007-12-03 Thread Amit Gupta
On Dec 3, 11:10 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > > > Thanks Frank. But again, this results into stack-track when the > exception is caught. On the other hand, I would like the debug-trace > just before throwing the exception. As a case, I might be debugging > code, where the programmar f

Re: using pdb and catching exception

2007-12-03 Thread Amit Gupta
On Dec 1, 11:14 pm, Frank Millman <[EMAIL PROTECTED]> wrote: > See this post from less than a week ago. > > http://tinyurl.com/2zyr7u > > I think that the message from Diez B. Roggisch has what you are > looking for. > > Frank Millman Thanks Frank. But again, this results into stack-track when the

Re: using pdb and catching exception

2007-12-01 Thread Frank Millman
Amit Gupta wrote: > Py'ites > > I am using pdb to check my code, and I would like to put a statement > like equivalent of "C++gdb>catch throw". > > Basically, I would like debugger to start as soon as an exception is > thrown. How may I do it? > > > Thanks See this post from less than a week ago

using pdb and catching exception

2007-12-01 Thread Amit Gupta
Py'ites I am using pdb to check my code, and I would like to put a statement like equivalent of "C++gdb>catch throw". Basically, I would like debugger to start as soon as an exception is thrown. How may I do it? Thanks -- http://mail.python.org/mailman/listinfo/python-list