Determine if this frame should be skipped as internal
(self, frame)
| 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 | """ |