Merge pull request #1887 from mbyt/pdbcls_example_with_tab_completion
pdbcls ipython example with tab completion
This commit is contained in:
commit
82218e4ee1
|
@ -14,7 +14,7 @@ def pytest_addoption(parser):
|
||||||
group._addoption(
|
group._addoption(
|
||||||
'--pdbcls', dest="usepdb_cls", metavar="modulename:classname",
|
'--pdbcls', dest="usepdb_cls", metavar="modulename:classname",
|
||||||
help="start a custom interactive Python debugger on errors. "
|
help="start a custom interactive Python debugger on errors. "
|
||||||
"For example: --pdbcls=IPython.core.debugger:Pdb")
|
"For example: --pdbcls=IPython.terminal.debugger:TerminalPdb")
|
||||||
|
|
||||||
def pytest_namespace():
|
def pytest_namespace():
|
||||||
return {'set_trace': pytestPDB().set_trace}
|
return {'set_trace': pytestPDB().set_trace}
|
||||||
|
|
Loading…
Reference in New Issue