Skip to content

Commit 1de27a8

Browse files
committed
Check for undefined hitCondition
1 parent 3078e40 commit 1de27a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/debug/xdebugConnection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ export abstract class Breakpoint {
159159
this.state = breakpointNode.getAttribute("state") as BreakpointState;
160160
} else {
161161
this.type = rest[0];
162-
this.hitCondition = rest[1].trim();
162+
if (rest[1] !== undefined) {
163+
this.hitCondition = rest[1].trim();
164+
}
163165
this.state = "enabled";
164166
}
165167
}

0 commit comments

Comments
 (0)