-
Notifications
You must be signed in to change notification settings - Fork 2
Fix smartstep, toggle smart step #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v2_latest
Are you sure you want to change the base?
Conversation
…to the V2 architecture
Refactor the target/CDTP model
Fix .scripts command
Finish resolving merge conflicts
Merge location model updates
Fix import casing
| } | ||
|
|
||
| if ((await this._sourceMapTransformer.allSources(clientPath.canonicalized)).length) { | ||
| if ((await this._sourceMapTransformer.allSources(frame.location.script.runtimeSource.identifier.canonicalized)).length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this equivalent to script.mappedSources.length?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, probably
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
My original plan was to refactor the code to call that same logic, without going through OnPause |
| if (paused.reason !== 'other') return false; | ||
|
|
||
| const frame = paused.callFrames[0]; | ||
| const mapping = await this._sourceMapTransformer.mapToAuthored(frame.location.script.url, frame.codeFlow.location.position.lineNumber, frame.codeFlow.location.position.columnNumber); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this equivalent to frame.location.mappedToSource().resource.isMappedSource() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, possibly
Fix skipFiles/toggle skip files
7c6a06b to
f57c9f6
Compare
376eb91 to
ecf1223
Compare
This makes smartStep work with one thing missing.
When we toggle smart step, previously we called
onPauseagain to do two things:originDoing this with the way things are now broken up is an interesting problem. I think this isn't critical and we can leave it out for now, but I'm curious whether you have any ideas about how to do that at all?