diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index 9ed3f0bc9..da5b18066 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -304,7 +304,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { */ telemetry.reportEvent('debugStopped', { reason }); this._hasTerminated = true; - if (this._clientAttached || (this._launchAttachArgs).noDebug) { + if (this._clientAttached || (this._launchAttachArgs && (this._launchAttachArgs).noDebug)) { this._session.sendEvent(new TerminatedEvent(restart)); }