@@ -29,17 +29,13 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
29
29
30
30
private _initArgs : DebugProtocol . InitializeRequestArguments ;
31
31
32
- private _clientAttached : boolean ;
33
32
private _variableHandles : Handles < IScopeVarHandle > ;
34
33
private _currentStack : WebKitProtocol . Debugger . CallFrame [ ] ;
35
34
private _committedBreakpointsByUrl : Map < string , WebKitProtocol . Debugger . BreakpointId [ ] > ;
36
- private _overlayHelper : utils . DebounceHelper ;
37
35
private _exceptionValueObject : WebKitProtocol . Runtime . RemoteObject ;
38
36
private _expectingResumedEvent : boolean ;
39
37
private _scriptsById : Map < WebKitProtocol . Debugger . ScriptId , WebKitProtocol . Debugger . Script > ;
40
38
private _setBreakpointsRequestQ : Promise < any > ;
41
-
42
- private _chromeProc : ChildProcess ;
43
39
private _webKitConnection : INSDebugConnection ;
44
40
private _eventHandler : ( event : DebugProtocol . Event ) => void ;
45
41
private appRoot : string ;
@@ -49,7 +45,6 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
49
45
50
46
public constructor ( ) {
51
47
this . _variableHandles = new Handles < IScopeVarHandle > ( ) ;
52
- this . _overlayHelper = new utils . DebounceHelper ( /*timeoutMs=*/ 200 ) ;
53
48
54
49
// Messages tagged with a special tag are sent to the frontend through the debugging protocol
55
50
Logger . addHandler ( this . _loggerFrontendHandler , [ Tags . FrontendMessage ] ) ;
@@ -72,7 +67,6 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
72
67
}
73
68
74
69
private clearClientContext ( ) : void {
75
- this . _clientAttached = false ;
76
70
this . fireEvent ( { seq : 0 , type : 'event' , event : 'clearClientContext' } ) ;
77
71
}
78
72
@@ -208,9 +202,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
208
202
}
209
203
210
204
private terminateSession ( ) : void {
211
- if ( this . _clientAttached ) {
212
- this . fireEvent ( new TerminatedEvent ( ) ) ;
213
- }
205
+ //this.fireEvent(new TerminatedEvent());
214
206
215
207
Logger . log ( "Terminating debug session" ) ;
216
208
this . clearEverything ( ) ;
@@ -219,7 +211,6 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
219
211
private clearEverything ( ) : void {
220
212
this . clearClientContext ( ) ;
221
213
this . clearTargetContext ( ) ;
222
- this . _chromeProc = null ;
223
214
224
215
if ( this . _webKitConnection ) {
225
216
Logger . log ( "Closing debug connection" ) ;
@@ -333,11 +324,6 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
333
324
}
334
325
335
326
public disconnect ( ) : Promise < void > {
336
- if ( this . _chromeProc ) {
337
- this . _chromeProc . kill ( 'SIGINT' ) ;
338
- this . _chromeProc = null ;
339
- }
340
-
341
327
this . clearEverything ( ) ;
342
328
343
329
return Promise . resolve < void > ( ) ;
0 commit comments