Eto, "Modeless" exceptions and errors within event handlers crash Rhino

Any error or exception within event handlers crash rhino. Even a syntax error placed in the sample file replicates the same result.

Probably related issue as well, the Breakpoints also do not work when within the event Handlers.

Am I missing something?


Hi @Tim_Williams,

What you’ve observed is all expected. The Python interpreter creates the modeless form and then ends, leaving what’s behind for Rhino to maintain. Thus, exceptions are not caught by the Python interpreter (as it’s long gone). And the same holds true to getting break points on event handlers. The best you can do in this case is to add some print statements, or to keep your form modal until you’ve fully debugged it.

– Dale

1 Like

Thanks for the response Dale! Good suggestions.