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

Consider swapping sourcemap bias checking order #112

Closed
roblourens opened this issue Sep 27, 2016 · 7 comments
Closed

Consider swapping sourcemap bias checking order #112

roblourens opened this issue Sep 27, 2016 · 7 comments
Labels
Milestone

Comments

@roblourens
Copy link
Member

IIRC, it's done this way because in some case the source-map lib will return mappings from a previous line, so if you set a breakpoint at line 5, col 0, you might get the mapping from line 4 instead.

@roblourens
Copy link
Member Author

In node-debug, mapFromSource now does LEAST_UPPER_BOUND without falling back on the other one. MapToSource first does GREATEST_LOWER_BOUND, then falls back on least_upper if it doesn't find anything. I should do that too...

@auchenberg
Copy link
Contributor

How does other editors and DevTools do this?
On Mon, Sep 26, 2016 at 10:16 PM Rob Lourens notifications@github.com
wrote:

In node-debug, mapFromSource now does LEAST_UPPER_BOUND without falling
back on the other one. MapToSource first does GREATEST_LOWER_BOUND, then
falls back on least_upper if it doesn't find anything. I should do that
too...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#112 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKl90LE0ZryuFPTk_ayjJjF8cOoLV1Cks5quKajgaJpZM4KHQx3
.

@roblourens
Copy link
Member Author

It's hard to say since they are usually not using the source-map lib - they end up with the right mapping one way or another.

@roblourens
Copy link
Member Author

roblourens commented Jun 13, 2017

For posterity, the main impact of this was Microsoft/vscode-chrome-debug#417

@nachocab
Copy link

nachocab commented Mar 7, 2018

@roblourens Regarding #19973, I can confirm that it is still not possible to set breakpoints on async/await code

@ermish
Copy link

ermish commented Mar 20, 2018

+1 having same issue still

@roblourens
Copy link
Member Author

Please open new issues

@microsoft microsoft locked as resolved and limited conversation to collaborators Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants