diff --git a/README.rst b/README.rst index dbfff79..e7f94cf 100644 --- a/README.rst +++ b/README.rst @@ -196,11 +196,11 @@ instead of ``pdb``. (It does not depend on ``ipdb`` anymore). pytest +++++++ pytest_ supports a ``--pdb`` option which can run ``ipdb`` / -``IPython.terminal.debugger:Pdb`` on ``Exception`` and ``breakpoint()``: +``IPython.terminal.debugger:TerminalPdb`` on ``Exception`` and ``breakpoint()``: .. code:: bash - pytest --pdb --pdbcls=IPython.terminal.debugger:Pdb -v ./test_example.py + pytest --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb -v ./test_example.py You don't need to specify ``--pdbcls`` for every ``pytest`` invocation if you add ``addopts`` to ``pytest.ini`` or ``pyproject.toml``. @@ -210,14 +210,14 @@ if you add ``addopts`` to ``pytest.ini`` or ``pyproject.toml``. .. code:: bash [tool.pytest.ini_options] - addopts = "--pdbcls=IPython.terminal.debugger:Pdb" + addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb" ``pyproject.toml``: .. code:: yml [tool.pytest.ini_options] - addopts = "--pdbcls=IPython.terminal.debugger:Pdb" + addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb" .. _pytest: https://pypi.python.org/pypi/pytest