Codebase list python-castellan / 02e306b
Merge "Add the debug flag to tox.ini" Jenkins authored 8 years ago Gerrit Code Review committed 8 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8282 By default, the functional tox job will use ``testr`` to execute the
8383 functional tests.
8484
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
85100 Pep8 Check
86101 ----------
87102
1717
1818 [testenv:venv]
1919 commands = {posargs}
20
21 [testenv:debug]
22 commands = oslo_debug_helper {posargs}
2023
2124 [testenv:cover]
2225 commands = python setup.py testr --coverage --testr-args='{posargs}'