Using the Python interpreter

The pdb module can be used in interactive mode by using the run() command:

>>> import pdb_test
>>> import pdb
>>> pdb.run('pdb_test.Pdb_test(10).go()')
> <string>(1)<module>()
(Pdb)

In this case, the run() statement is from the debugger and will stop the execution before evaluating the first expression.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.0.25