When debugging unit tests (through the pycharm test runner), one can turn on the interactive command line, but (unlike when debugging regular scripts) the commands entered d
Unittests usually cannot be used in combination with debuggers, unless you explicitly delcare them as to be debugged. For this, use the decorator "@unittest.debug".
s. also https://docs.python.org/3/library/unittest.html#organizing-tests for more information on this topic.