Hi Brian,
Brian Stephanik <[email protected]> writes:
> I'd like have PuDB executed while I'm working from within the Python
> interactive prompt. Won a module in Python while in the interactive prompt.
> I tried adding the following line to my Python script:
> import pudb;pudb.set_trace()
> However, when I call the function from the interactive prompt that contains
> this code, PuDB does not run.
>
> Is there a way to do this?
I must be missing your point. I just created a file a.py:
def f(x):
for i in range(1000):
pass
from pudb import set_trace; set_trace()
for i in range(1000):
pass
then said
>>> import a
>>> a.f(1)
and I got a perfectly working PuDB. (Linux, 2.7.3rc2)
Andreas
_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb