From dc95d82d4c00a74629cb4d8ad37f2903455b6d48 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Sun, 25 Aug 2019 09:01:58 -0700 Subject: [PATCH] Fix remote URIs sent to console Fix microsoft/vscode-chrome-debug#899 --- src/chrome/chromeDebugAdapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index 2b50ef873..ccdd16d92 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -983,7 +983,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { if (stackTrace && stackTrace.callFrames.length) { const stackFrame = await this._stackFrames.mapCallFrame(stackTrace.callFrames[0], this._transformers, this._scriptContainer, this.originProvider); - e.body.source = stackFrame.source; + e.body.source = mapInternalSourceToRemoteClient(stackFrame.source, this._launchAttachArgs.remoteAuthority); e.body.line = stackFrame.line; e.body.column = stackFrame.column; } @@ -1006,7 +1006,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { const stackTrace = params.exceptionDetails.stackTrace; if (stackTrace && stackTrace.callFrames.length) { const stackFrame = await this._stackFrames.mapCallFrame(stackTrace.callFrames[0], this._transformers, this._scriptContainer, this.originProvider); - e.body.source = stackFrame.source; + e.body.source = mapInternalSourceToRemoteClient(stackFrame.source, this._launchAttachArgs.remoteAuthority); e.body.line = stackFrame.line; e.body.column = stackFrame.column; }