diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index f983edd13..d4c5747da 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -46,6 +46,8 @@ def pytest_configure(config): else: pdb_cls = pdb.Pdb + global immediately_break + immediately_break = config.getvalue("trace") if config.getvalue("usepdb"): config.pluginmanager.register(PdbInvoke(), "pdbinvoke")