MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / ignore_exception_trace

Function ignore_exception_trace

_pydevd_bundle/pydevd_frame_utils.py:82–96  ·  view source on GitHub ↗
(trace)

Source from the content-addressed store, hash-verified

80
81
82def ignore_exception_trace(trace):
83 while trace is not None:
84 filename = trace.tb_frame.f_code.co_filename
85 if filename in ("<frozen importlib._bootstrap>", "<frozen importlib._bootstrap_external>"):
86 # Do not stop on inner exceptions in py3 while importing
87 return True
88
89 # ImportError should appear in a user's code, not inside debugger
90 for file in FILES_WITH_IMPORT_HOOKS:
91 if filename.endswith(file):
92 return True
93
94 trace = trace.tb_next
95
96 return False
97
98
99def cached_call(obj, func, *args):

Callers 2

exception_breakFunction · 0.90
should_stop_on_exceptionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected