Skip to content

Commit b097229

Browse files
authored
Merge pull request #767 from isc-bsaviano/master
Check for undefined `hitCondition`
2 parents 3078e40 + 1de27a8 commit b097229

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)