EDIT: Investigate, this seems to happen inconsistently.
When Bootsnap loads InstructionSequences from its cache, it doesn't run through the source map registration code, which breaks proper line number mapping from transformed code to written code.
A possible strategy to fix this might be to output the source map and load that back when loading the instruction sequences. This will require some changes to the SourceMap API, but also might get us a bit closer to adding support to Pry. Let's keep that in mind while fixing this.
EDIT: Investigate, this seems to happen inconsistently.
When Bootsnap loads
InstructionSequences from its cache, it doesn't run through the source map registration code, which breaks proper line number mapping from transformed code to written code.A possible strategy to fix this might be to output the source map and load that back when loading the instruction sequences. This will require some changes to the SourceMap API, but also might get us a bit closer to adding support to Pry. Let's keep that in mind while fixing this.