[Eric] Re: Question about "Exception Filter"

Mikhail termim at gmail.com
Tue May 27 21:34:43 BST 2008


Detlev Offenbach <detlev at ...> writes:

> 
> On Donnerstag, 8. Mai 2008, Mikhail wrote:
> > Hi,
> >
> > I've a question about "Exceptions Filter" dialog. The input line at the
> > bottom of the dialog has a tool tip "Enter an exception type that shall be
> > highlighted". What does the "highlighted" mean? Filtered out, i.e. ignored?
> >
> 
> According to the "What's this" help, highlighted means, that only those 
> exceptions will be reported, that appear in the list. If the list is empty, 
> all exceptions will be reported.
> 

Ok then, my guess was right but unfortunately  it doesn't work for me for some
reason. The following code illustrates the problem

class Myerror(Exception): pass
def test(x):
    d = {1:'1'}
    try:
        return d[x]
    except Keyerror:
        raise MyError, 'not found'

for i in range(10):
    y = test(i)
print 'DONE'

I tried to insert both KeyError and MyError in this "Exception Filter" dialog
but Eric continues to stop on these exceptions. I've tried to do this before
starting debugging session and during one with the same result.

Another problem in this example - if I put a breakpoint on the last line (with
print statement) and select "Start"->"Debug script" it stops on the 
"return d[x]" line then after I click on "No" button - on the "raise Myerror
..." line and then finally shows a message "The program being debugged has
terminated unexpectedly." ignoring the breakpoint. 

I've tried this with and without the "Report exceptions" checked on the "Debug
Script" dialog.

Is there workaround for this feature? Otherwise it makes debugging almost
unusable in some cases.

Regards,
Mikhail




More information about the Eric mailing list