@@ -106,9 +106,6 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
106
106
/** If we're stopped at a breakpoint. */
107
107
private _break = false ;
108
108
109
- /** If we should automatically stop target */
110
- private _stopOnEntry : boolean ;
111
-
112
109
/** If this is a `launch` session */
113
110
private _isLaunch = false ;
114
111
@@ -228,7 +225,7 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
228
225
229
226
protected async launchRequest ( response : DebugProtocol . LaunchResponse , args : LaunchRequestArguments ) : Promise < void > {
230
227
try {
231
- this . _debugTargetSet = this . _stopOnEntry = false ;
228
+ this . _debugTargetSet = false ;
232
229
this . _isLaunch = true ;
233
230
const debugTarget = `${ this . _namespace } :${ args . program } ` ;
234
231
await this . _connection . sendFeatureSetCommand ( "debug_target" , debugTarget , true ) ;
@@ -243,7 +240,6 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
243
240
protected async attachRequest ( response : DebugProtocol . AttachResponse , args : AttachRequestArguments ) : Promise < void > {
244
241
try {
245
242
this . _debugTargetSet = this . _isLaunch = false ;
246
- this . _stopOnEntry = args . stopOnEntry ;
247
243
const debugTarget = args . cspDebugId != undefined ? `CSPDEBUG:${ args . cspDebugId } ` : `PID:${ args . processId } ` ;
248
244
await this . _connection . sendFeatureSetCommand ( "debug_target" , debugTarget ) ;
249
245
if ( args . cspDebugId != undefined ) {
@@ -258,7 +254,6 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
258
254
await this . _connection . sendBreakpointSetCommand ( new xdebug . Watchpoint ( "ok" , this . _cspWatchpointCondition ) ) ;
259
255
this . _isCsp = true ;
260
256
}
261
- this . _stopOnEntry = false ;
262
257
this . sendResponse ( response ) ;
263
258
} else {
264
259
this . _isCsp = false ;
@@ -291,11 +286,9 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
291
286
args : DebugProtocol . ConfigurationDoneArguments
292
287
) : Promise < void > {
293
288
if ( ! this . _isLaunch && ! this . _isCsp ) {
294
- // The debug agent ignores the first run command for non-CSP attaches,
295
- // so send one right away, regardless of the stopOnEntry value
289
+ // The debug agent ignores the first run command
290
+ // for non-CSP attaches, so send one right away
296
291
await this . _connection . sendRunCommand ( ) ;
297
- }
298
- if ( this . _stopOnEntry && ! this . _isLaunch && ! this . _isCsp ) {
299
292
// Tell VS Code that we're stopped
300
293
this . sendResponse ( response ) ;
301
294
const event : DebugProtocol . StoppedEvent = new StoppedEvent ( "entry" , this . _connection . id ) ;
0 commit comments