[PATCH v2] dispatch: refactor tortured debugger setup logic

Bryan O'Sullivan bos at serpentine.com
Fri Jan 1 18:55:51 CST 2016


On Fri, Jan 1, 2016 at 2:58 PM, Sean Farley <sean at farley.io> wrote:

> Long ago, when I wrote some of this code, I wanted the ability to throw
> in a:
>
> import ipdb
> ipdb.set_trace()
>
> And have that throw me into a debugger. My reasoning was that I didn't
> always control the command-line args (such as some test scripts
> running).
>

That's still quite easy to do. Under this patch, you'd just change the
assignment of debugger to 'ipdb' and make the "if" immediately above it
unconditionally true.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160101/6a12a49e/attachment.html>


More information about the Mercurial-devel mailing list