Skip to content

Commit

Permalink
Merge pull request #458 from ccordoba12/issue-20639
Browse files Browse the repository at this point in the history
PR: Disable IPython's debugger skip functionality by default
  • Loading branch information
ccordoba12 committed Jun 11, 2023
2 parents e75e783 + 9e771ed commit cc78610
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spyder_kernels/customize/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ def __init__(self, completekey='tab', stdin=None, stdout=None,
# Line received from the frontend
self._cmd_input_line = None

# This is not available in IPython 5
if hasattr(self, '_predicates'):
# Turn off IPython's debugger skip funcionality by default because
# it makes our debugger quite slow. It's also important to remark
# that this functionality doesn't do anything on its own. Users
# need to mark what frames they want to skip for it to be useful.
# So, we hope that knowledgeable users will find that they need to
# enable it in Spyder.
# Fixes spyder-ide/spyder#20639.
self._predicates["debuggerskip"] = False

# --- Methods overriden for code execution
def print_exclamation_warning(self):
"""Print pdb warning for exclamation mark."""
Expand Down

0 comments on commit cc78610

Please sign in to comment.