This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
Line 1 breakpoint locations may no longer be accurate after 10.16+ #737
Labels
api: clouddebugger
Issues related to the googleapis/cloud-debug-nodejs API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
A failing test (testing setting line-1 breakpoints) that is the cause of #729 highlights a potentially breaking change for us in Node 10.16: scripts are now parsed slightly differently. Consider the following code:
In Node 10.15 and below, getting the above script via Inspector's
Debugger.getScriptSource
yields:In Node 10.16+, it yields the original source:
This almost certainly affects line-1 breakpoints.
The text was updated successfully, but these errors were encountered: