B2G/QA/Automation/Style Guide/Howtos: Difference between revisions

Jump to navigation Jump to search
PDB
(PDB)
Line 147: Line 147:
         player_view.tap_play()
         player_view.tap_play()
</source>
</source>
== Use Python Debugger ==
You can stop the execution of the script and inject custom python statements by using pdb.  just add below lines where you'd like to start debugging:
<source python>
import pdb
pdb.set_trace()
</source>
[https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/ Here] is the informative tutorial regarding pdb.
352

edits

Navigation menu