Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix smartStep operating on file: URIs instead of correctly resolved p…
Browse files Browse the repository at this point in the history
…aths
  • Loading branch information
roblourens committed Nov 3, 2019
1 parent e6a9631 commit 87d640f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {

private async _shouldSmartStepCallFrame(frame: Crdp.Debugger.CallFrame): Promise<boolean> {
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);
}

/**
Expand Down

0 comments on commit 87d640f

Please sign in to comment.