Skip to content

JBKahn/pytest-ipdb-cls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-ipdb-cls

Installation and usage

To install

pip install pytest-ipdb-cls

To use: run pytest with --pdbcls=pytest_ipdb_cls:Debugger.

Usage with Pytest

To enter into the dbeugger, complete with syntax highlighting and tab completion add:

import pytest
pytest.set_trace()

to the code and it will enter the trace. This does not require you to paass -s as it will handle capture correctly.

You can also enter the debugger on failure by executing pytest with --pdbcls=pytest_ipdb_cls:Debugger --pdb.

About

Provides a helper to use ipdb with pytest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%