Theano/Theano — pull request #1358 by delallea (2013-04-28 15:44:06+00:00)
Title: Added 'on_opt_error=pdb' to fall into pdb on error

This makes it easier to debug crashes in optimizations.

I don't see how this could be tested automatically, but I manually tested it by adding dummy crashes in ``MergeOptimizer.apply`` and ``local_lift_transpose_through_dot``, and both broke into pdb in the correct place.