Hi Helmut, Helmut Jarausch <[email protected]> writes: > It seems I've been using pudb for toy problems only. > > Now, I do need it for a bigger program. > > I start it with > > python3 -mpudb FileA.py > > In FileA.py there is an import FileB where FileB.py is in the working > directory. > > If I s(tep) into a function defined in FileB.py I get > > <no source code > available> Variables: > > > BackUpDir: '/numa-sv/jarausch' > If this is generated code and you would like the source code to show > up he BPath: '.' > simply set the attribute _MODULE_SOURCE_CODE in the module in which > this f Check: 0 > was compiled to a string containing the code. > > If I enter 'm' the module is shown and if I enter it's name the source > of this > module is shown, as well. > > But 's' just produces the error message again (without showing the > source and location > where the debugger has stopped). > > What am I missing?
I can't reproduce this using 3.3.5rc2 and pudb from git. I've used these
two files:
---------------------------------------------------
$ cat a.py
import b
b.f()
$ cat b.py
def f():
print("yo")
---------------------------------------------------
And run them using 'python -m pudb a.py' and 'python -m pudb
modtest/a.py' (i.e. from a different directory).
Andreas
pgpOKSjAyDIuR.pgp
Description: PGP signature
_______________________________________________ Pudb mailing list [email protected] http://lists.tiker.net/listinfo/pudb
