Pytest debugger console not starting in iPython

I'm running tests in pytest and have a breakpoint set. Once the breakpoint is triggered I open the debugger console but it opens a standard python dialog not ipython.


I've set the "Use iPython if available" option in the settings but it doesn't seem to make a difference.


Any suggestions?



Comment actions Permalink

I get iPython, but nothing is printed out - code completion is working but after pressing "Enter", nothing is displayed.

Comment actions Permalink

Try adding '-s' flag to Additional Arguments in the run configuration of your pytest test. I have this set in my 'pytest' template so all tests get this configuration.

The flag disables capturing of output to stdout/stderr which allows you to interact with the program in the REPL while debugging tests.



Please sign in to leave a comment.