Skip to content

Commit

Permalink
Fix problem with just my code being ignored during stepping (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo authored Dec 19, 2024
1 parent 34cc53b commit 24aa6a5
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def _get_func_code_info(code_obj, frame_or_depth) -> FuncCodeInfo:
frame = frame_or_depth
assert frame.f_code is code_obj

func_code_info.filtered_out_force_checked = py_db.apply_files_filter(frame, func_code_info.abs_path_filename, True)
func_code_info.filtered_out_force_checked = py_db.apply_files_filter(frame, func_code_info.abs_path_filename, py_db.get_use_libraries_filter())

if py_db.is_files_filter_enabled:
func_code_info.always_filtered_out = func_code_info.filtered_out_force_checked
Expand Down Expand Up @@ -1158,7 +1158,7 @@ def _return_event(code, instruction, retval):
or (
info.pydev_step_cmd == CMD_STEP_INTO_MY_CODE
and frame.f_back is not None
and not py_db.apply_files_filter(frame.f_back, frame.f_back.f_code.co_filename, True)
and not py_db.apply_files_filter(frame.f_back, frame.f_back.f_code.co_filename, py_db.get_use_libraries_filter())
)
):
_show_return_values(frame, retval)
Expand Down
Loading

0 comments on commit 24aa6a5

Please sign in to comment.