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?

 

 

0

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

0

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.

E.g.

0

请先登录再写评论。