@@ -143,12 +143,12 @@ export abstract class Breakpoint {
143143 public state : BreakpointState ;
144144 /** The connection this breakpoint is set on */
145145 public connection : Connection ;
146- /** A numeric value used to determine if the breakpoint should pause execution or be skipped. */
147- public hitCount ?: string ;
146+ /** The value of the `hitCondition` property of the input `DebugProtocol.SourceBreakpoint` */
147+ public hitCondition ?: string ;
148148 /** Constructs a breakpoint object from an XML node from a XDebug response */
149149 public constructor ( breakpointNode : Element , connection : Connection ) ;
150150 /** To create a new breakpoint in derived classes */
151- public constructor ( type : BreakpointType , hitCount ?: string ) ;
151+ public constructor ( type : BreakpointType , hitCondition ?: string ) ;
152152 public constructor ( ...rest : any [ ] ) {
153153 if ( typeof rest [ 0 ] === "object" ) {
154154 // from XML
@@ -159,7 +159,7 @@ export abstract class Breakpoint {
159159 this . state = breakpointNode . getAttribute ( "state" ) as BreakpointState ;
160160 } else {
161161 this . type = rest [ 0 ] ;
162- this . hitCount = rest [ 1 ] ;
162+ this . hitCondition = rest [ 1 ] ;
163163 this . state = "enabled" ;
164164 }
165165 }
@@ -178,7 +178,7 @@ export class LineBreakpoint extends Breakpoint {
178178 /** constructs a line breakpoint from an XML node */
179179 public constructor ( breakpointNode : Element , connection : Connection ) ;
180180 /** contructs a line breakpoint for passing to sendSetBreakpointCommand */
181- public constructor ( fileUri : string , line : number , hitCount ?: string ) ;
181+ public constructor ( fileUri : string , line : number , hitCondition ?: string ) ;
182182 public constructor ( ...rest : any [ ] ) {
183183 if ( typeof rest [ 0 ] === "object" ) {
184184 const breakpointNode : Element = rest [ 0 ] ;
@@ -200,7 +200,7 @@ export class ClassLineBreakpoint extends LineBreakpoint {
200200 public methodOffset : number ;
201201
202202 /** contructs a line breakpoint for passing to sendSetBreakpointCommand */
203- public constructor ( fileUri : string , line : number , method : string , methodOffset : number , hitCount ?: string ) ;
203+ public constructor ( fileUri : string , line : number , method : string , methodOffset : number , hitCondition ?: string ) ;
204204 public constructor ( ...rest : any [ ] ) {
205205 if ( typeof rest [ 0 ] === "object" ) {
206206 const breakpointNode : Element = rest [ 0 ] ;
@@ -221,7 +221,7 @@ export class RoutineLineBreakpoint extends LineBreakpoint {
221221 public methodOffset : number ;
222222
223223 /** contructs a line breakpoint for passing to sendSetBreakpointCommand */
224- public constructor ( fileUri : string , line : number , method : string , methodOffset : number , hitCount ?: string ) ;
224+ public constructor ( fileUri : string , line : number , method : string , methodOffset : number , hitCondition ?: string ) ;
225225 public constructor ( ...rest : any [ ] ) {
226226 if ( typeof rest [ 0 ] === "object" ) {
227227 const breakpointNode : Element = rest [ 0 ] ;
@@ -248,7 +248,7 @@ export class ConditionalBreakpoint extends Breakpoint {
248248 /** Constructs a breakpoint object from an XML node from a XDebug response */
249249 public constructor ( breakpointNode : Element , connection : Connection ) ;
250250 /** Contructs a breakpoint object for passing to sendSetBreakpointCommand */
251- public constructor ( expression : string , fileUri : string , line ?: number , hitCount ?: string ) ;
251+ public constructor ( expression : string , fileUri : string , line ?: number , hitCondition ?: string ) ;
252252 public constructor ( ...rest : any [ ] ) {
253253 if ( typeof rest [ 0 ] === "object" ) {
254254 // from XML
@@ -277,7 +277,7 @@ export class ClassConditionalBreakpoint extends ConditionalBreakpoint {
277277 line : number ,
278278 method : string ,
279279 methodOffset : number ,
280- hitCount ?: string
280+ hitCondition ?: string
281281 ) ;
282282 public constructor ( ...rest : any [ ] ) {
283283 if ( typeof rest [ 0 ] === "object" ) {
@@ -304,7 +304,7 @@ export class RoutineConditionalBreakpoint extends ConditionalBreakpoint {
304304 line : number ,
305305 method : string ,
306306 methodOffset : number ,
307- hitCount ?: string
307+ hitCondition ?: string
308308 ) ;
309309 public constructor ( ...rest : any [ ] ) {
310310 if ( typeof rest [ 0 ] === "object" ) {
@@ -854,8 +854,8 @@ export class Connection extends DbgpConnection {
854854 args += ` -m PLACEHOLDER` ;
855855 args += ` -n PLACEHOLDER` ;
856856 }
857- if ( breakpoint . hitCount ) {
858- args += ` -h ${ breakpoint . hitCount } ` ;
857+ if ( breakpoint . hitCondition ) {
858+ args += ` -h ${ breakpoint . hitCondition } ` ;
859859 }
860860 return new BreakpointSetResponse ( await this . _enqueueCommand ( "breakpoint_set" , args , data ) , this ) ;
861861 }
0 commit comments