Skip to content

Commit 34da5e7

Browse files
committed
fix(debugger): handle breakpoints in __init__.robot files correctly
fixes #515
1 parent eaef46b commit 34da5e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/debugger/src/robotcode/debugger/debugger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,8 @@ def add_stackframe_entry(
930930
) -> StackFrameEntry:
931931
path = pathlib.Path(source) if source is not None else None
932932
is_file = path is not None and path.is_file()
933-
if path is not None and not is_file and type in ["SETUP", "TEARDOWN"]:
933+
934+
if path is not None and not is_file:
934935
init_path = pathlib.Path(path, "__init__.robot")
935936
if init_path.exists() and init_path.is_file():
936937
is_file = True

0 commit comments

Comments
 (0)