I had been running pudb via a bash path search. I had the wrong path for a while, but now it's corrected: (dev) dstromberg@dstromberg-linux ~/PycharmProjects/infinity_PY $ type -all python python is /home/dstromberg/PycharmProjects/infinity_PY/bin/python python is /home/dstromberg/virtualenvs/dev/bin/python python is /usr/bin/python
I switched to using: import pudb pudb.set_trace() ...and it started working. Thanks! On Fri, Feb 19, 2016 at 5:18 PM, Aaron Meurer <[email protected]> wrote: > 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
