in src/edgeChromiumDebugAdapter.ts [133:150]
protected runConnection(): Promise<void>[] {
if (!this._isDebuggerUsingWebView) {
return super.runConnection();
} else {
// For WebView we must not call super.runConnection() since that will cause the execution to resume before we are ready.
// Instead we strip out the call to _chromeConnection.run() and call runIfWaitingForDebugger() once attach is complete.
return [
this.chrome.Console.enable()
.catch(e => { }),
this.chrome.Debugger.enable() as any,
this.chrome.Runtime.enable(),
this.chrome.Log.enable()
.catch(e => { }),
this.chrome.Page.enable(),
this.chrome.Network.enable({}),
];
}
}