Describe vital details for debugging in PyCharm

Describe the settings required to be able to debug
Mistral in in PyCharm.

Change-Id: Id70078d40d7d6958435d9a39e46f00c4735411f1
Signed-off-by: Andras Kovi <akovi@nokia.com>
This commit is contained in:
Andras Kovi 2016-10-04 12:29:44 +02:00
parent 26f7d62bbf
commit 8bf1da2760

View File

@ -270,6 +270,28 @@ and run the following command in *pdb*, *PyDev* or *PyCharm*::
mistral/cmd/launch.py --server all --config-file etc/mistral.conf --use-debugger
.. note::
In PyCharm, you also need to enable the Gevent compatibility flag in
Settings -> Build, Execution, Deployment -> Python Debugger -> Gevent
compatible. Without this setting, PyCharm will not show variable values
and become unstable during debugging.
Running unit tests in PyCharm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In order to be able to conveniently run unit tests, you need to:
1. Set unit tests as the default runner:
Settings -> Tools -> Python Integrated Tools -> Default test runner: Unittests
2. Enable test detection for all classes:
Run/Debug Configurations -> Defaults -> Python tests -> Unittests -> uncheck
Inspect only subclasses of unittest.TestCase
Running examples
~~~~~~~~~~~~~~~~