@@ -143,12 +143,12 @@ export abstract class Breakpoint {
143
143
public state : BreakpointState ;
144
144
/** The connection this breakpoint is set on */
145
145
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 ;
148
148
/** Constructs a breakpoint object from an XML node from a XDebug response */
149
149
public constructor ( breakpointNode : Element , connection : Connection ) ;
150
150
/** To create a new breakpoint in derived classes */
151
- public constructor ( type : BreakpointType , hitCount ?: string ) ;
151
+ public constructor ( type : BreakpointType , hitCondition ?: string ) ;
152
152
public constructor ( ...rest : any [ ] ) {
153
153
if ( typeof rest [ 0 ] === "object" ) {
154
154
// from XML
@@ -159,7 +159,7 @@ export abstract class Breakpoint {
159
159
this . state = breakpointNode . getAttribute ( "state" ) as BreakpointState ;
160
160
} else {
161
161
this . type = rest [ 0 ] ;
162
- this . hitCount = rest [ 1 ] ;
162
+ this . hitCondition = rest [ 1 ] ;
163
163
this . state = "enabled" ;
164
164
}
165
165
}
@@ -178,7 +178,7 @@ export class LineBreakpoint extends Breakpoint {
178
178
/** constructs a line breakpoint from an XML node */
179
179
public constructor ( breakpointNode : Element , connection : Connection ) ;
180
180
/** 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 ) ;
182
182
public constructor ( ...rest : any [ ] ) {
183
183
if ( typeof rest [ 0 ] === "object" ) {
184
184
const breakpointNode : Element = rest [ 0 ] ;
@@ -200,7 +200,7 @@ export class ClassLineBreakpoint extends LineBreakpoint {
200
200
public methodOffset : number ;
201
201
202
202
/** 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 ) ;
204
204
public constructor ( ...rest : any [ ] ) {
205
205
if ( typeof rest [ 0 ] === "object" ) {
206
206
const breakpointNode : Element = rest [ 0 ] ;
@@ -221,7 +221,7 @@ export class RoutineLineBreakpoint extends LineBreakpoint {
221
221
public methodOffset : number ;
222
222
223
223
/** 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 ) ;
225
225
public constructor ( ...rest : any [ ] ) {
226
226
if ( typeof rest [ 0 ] === "object" ) {
227
227
const breakpointNode : Element = rest [ 0 ] ;
@@ -248,7 +248,7 @@ export class ConditionalBreakpoint extends Breakpoint {
248
248
/** Constructs a breakpoint object from an XML node from a XDebug response */
249
249
public constructor ( breakpointNode : Element , connection : Connection ) ;
250
250
/** 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 ) ;
252
252
public constructor ( ...rest : any [ ] ) {
253
253
if ( typeof rest [ 0 ] === "object" ) {
254
254
// from XML
@@ -277,7 +277,7 @@ export class ClassConditionalBreakpoint extends ConditionalBreakpoint {
277
277
line : number ,
278
278
method : string ,
279
279
methodOffset : number ,
280
- hitCount ?: string
280
+ hitCondition ?: string
281
281
) ;
282
282
public constructor ( ...rest : any [ ] ) {
283
283
if ( typeof rest [ 0 ] === "object" ) {
@@ -304,7 +304,7 @@ export class RoutineConditionalBreakpoint extends ConditionalBreakpoint {
304
304
line : number ,
305
305
method : string ,
306
306
methodOffset : number ,
307
- hitCount ?: string
307
+ hitCondition ?: string
308
308
) ;
309
309
public constructor ( ...rest : any [ ] ) {
310
310
if ( typeof rest [ 0 ] === "object" ) {
@@ -854,8 +854,8 @@ export class Connection extends DbgpConnection {
854
854
args += ` -m PLACEHOLDER` ;
855
855
args += ` -n PLACEHOLDER` ;
856
856
}
857
- if ( breakpoint . hitCount ) {
858
- args += ` -h ${ breakpoint . hitCount } ` ;
857
+ if ( breakpoint . hitCondition ) {
858
+ args += ` -h ${ breakpoint . hitCondition } ` ;
859
859
}
860
860
return new BreakpointSetResponse ( await this . _enqueueCommand ( "breakpoint_set" , args , data ) , this ) ;
861
861
}
0 commit comments