Skip to content

Commit 24aa6a5

Browse files
authored
Fix problem with just my code being ignored during stepping (#1786)
1 parent 34cc53b commit 24aa6a5

File tree

3 files changed

+119
-59
lines changed

3 files changed

+119
-59
lines changed

src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def _get_func_code_info(code_obj, frame_or_depth) -> FuncCodeInfo:
624624
frame = frame_or_depth
625625
assert frame.f_code is code_obj
626626

627-
func_code_info.filtered_out_force_checked = py_db.apply_files_filter(frame, func_code_info.abs_path_filename, True)
627+
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())
628628

629629
if py_db.is_files_filter_enabled:
630630
func_code_info.always_filtered_out = func_code_info.filtered_out_force_checked
@@ -1158,7 +1158,7 @@ def _return_event(code, instruction, retval):
11581158
or (
11591159
info.pydev_step_cmd == CMD_STEP_INTO_MY_CODE
11601160
and frame.f_back is not None
1161-
and not py_db.apply_files_filter(frame.f_back, frame.f_back.f_code.co_filename, True)
1161+
and not py_db.apply_files_filter(frame.f_back, frame.f_back.f_code.co_filename, py_db.get_use_libraries_filter())
11621162
)
11631163
):
11641164
_show_return_values(frame, retval)

0 commit comments

Comments
 (0)