I'm struggling with pytest configuration. I would like to:
- use
breakpoint()wherever I want in my tests to start debugging sessions, - in that case, be able to enter multi line inputs (several lines of code in a row that should be run simultaneously),
- have colors both for
Pytestoutput (PASSEDin green, for instance) and for the loosely coupled debugging code I'm writing (what follows>ipdbin the screenshot below), - have a clean and readable indentation in my
breakpoint()inputs, - have tab completion like in
iPython, - have the same environment in the debugging sessions started on failure with the
--pdbflag.
(from highest to lowest priority)
In short, I'd like to improve that:
Here is the context: I'm doing TDD and I'd like to have the most comfortable working environment.
For now, I've set PYTHONBREAKPOINT to "IPython.terminal.debugger.set_trace" (doc) and I run pytest with --pdbcls=IPython.terminal.debugger:Pdb (cf. this other question).
I haven't given bpython a try, should I consider this alternative?
