[PATCH v2] dispatch: refactor tortured debugger setup logic

Sean Farley sean at farley.io
Fri Jan 1 19:09:13 CST 2016


Bryan O'Sullivan <bos at serpentine.com> writes:

> 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.

Yay :-D


More information about the Mercurial-devel mailing list