MCPcopy Index your code
hub / github.com/ipython/ipython / _is_internal_frame

Method _is_internal_frame

IPython/core/debugger.py:385–396  ·  view source on GitHub ↗

Determine if this frame should be skipped as internal

(self, frame)

Source from the content-addressed store, hash-verified

383 return stack, pos
384
385 def _is_internal_frame(self, frame):
386 """Determine if this frame should be skipped as internal"""
387 filename = frame.f_code.co_filename
388
389 # Skip bdb.py runcall and internal operations
390 if filename.endswith("bdb.py"):
391 func_name = frame.f_code.co_name
392 # Skip internal bdb operations but allow breakpoint hits
393 if func_name in ("runcall", "run", "runeval"):
394 return True
395
396 return False
397
398 def _hidden_predicate(self, frame):
399 """

Callers 1

get_stackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected