Merge "Add the debug flag to tox.ini"
Jenkins authored 8 years ago
Gerrit Code Review committed 8 years ago
82 | 82 | By default, the functional tox job will use ``testr`` to execute the |
83 | 83 | functional tests. |
84 | 84 | |
85 | Debugging | |
86 | --------- | |
87 | ||
88 | In order to be able to debug code in Castellan, you must use the Python | |
89 | Debugger. This can be done by adding ``import pdb; pdb.set_trace()`` | |
90 | to set the breakpoint. Then run the following command to hit the breakpoint: | |
91 | ||
92 | .. code-block:: bash | |
93 | ||
94 | # hit the pdb breakpoint | |
95 | tox -e debug | |
96 | ||
97 | Once in the Python Debugger, you can use the commands as stated in the | |
98 | `Debugger Commands` section here: https://docs.python.org/2/library/pdb.html | |
99 | ||
85 | 100 | Pep8 Check |
86 | 101 | ---------- |
87 | 102 |