How are you running pudb? Do you use the pudb command or import
pudb;pudb.set_trace()? If it's the command, is it possible it's
running through a different Python interpreter?

Aaron Meurer


On Fri, Feb 19, 2016 at 7:21 PM, Dan Stromberg <[email protected]> wrote:
> On Fri, Feb 19, 2016 at 4:09 PM, Andreas Kloeckner
> <[email protected]> wrote:
>> Dan Stromberg <[email protected]> writes:
>>
>>> I have a small test script, which is normally run through nose.
>>>
>>> It seems to have a problem when run under nose - it reaches out to a
>>> database, when I'm attempting to tell it to skip that for the sake of
>>> unit testing.  So I decided to run it under a debugger, to see why the
>>> database code isn't getting monkey patched the way it's supposed to.
>
>> Does that work in pdb?
>
> I fired up pdb, did a couple of sys.path.insert()'s, and ran the
> script with "next", "next", "next".  And pdb appears to get past the
> offending line - no traceback, at least not at the point that pudb
> tracebacks.  If pdb tracebacks at all, it's later in the script - it
> didn't traceback at all, as far as I took it.
>
> There's some sort of magic going on inside of bootstrap.py I think.
> It may be confusing pudb.  For a while, I was getting the same error
> (the one I get now under pudb) when running the script standalone, but
> rerunning bootstrap.py's "buildout" script fixed that.
>
> Any suggestions?
>
> Thanks for the great tool!
>
> _______________________________________________
> Pudb mailing list
> [email protected]
> https://lists.tiker.net/listinfo/pudb

_______________________________________________
Pudb mailing list
[email protected]
https://lists.tiker.net/listinfo/pudb

Reply via email to