From 87d640fc9a561015f43d61cc842049576945b41e Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Sun, 3 Nov 2019 10:46:07 -0800 Subject: [PATCH] Fix smartStep operating on file: URIs instead of correctly resolved paths --- src/chrome/chromeDebugAdapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index e26bb0095..d6a1f0e3e 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -1512,7 +1512,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { private async _shouldSmartStepCallFrame(frame: Crdp.Debugger.CallFrame): Promise { const stackFrame = this._stackFrames.callFrameToStackFrame(frame, this._scriptContainer, this.originProvider); - return this._smartStepper.shouldSmartStep(stackFrame, this.pathTransformer, this.sourceMapTransformer); + const fakeResponse = { stackFrames: [stackFrame] }; + await this.pathTransformer.stackTraceResponse(fakeResponse); + await this.sourceMapTransformer.stackTraceResponse(fakeResponse); + return this._smartStepper.shouldSmartStep(fakeResponse.stackFrames[0], this.pathTransformer, this.sourceMapTransformer); } /**