You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compile it with typescript: tsc main.ts --sourcemap
in vscode, set a breakpoint on the exactly function call
run it with the nodejs debug console in vscode: node main.js
when the breakpoint is reached, hit F11 to step into the function
How often does it reproduce? Is there a required condition?
every time
What is the expected behavior?
steps into the source code located at ./node_modules/@detachhead/ts-helpers/src/utilityFunctions/misc.ts, as the @detachhead/ts-helpers package includes its source code and source maps
What do you see instead?
stepped into compiled .js file
Additional information
debugging in webstorm produces a slightly different result. instead of stepping into the .js file when pressing "step into", it just steps over instead
The text was updated successfully, but these errors were encountered:
@nodejs/tooling (Maybe there's a better team to ping? I basically looked at the teams that @bcoe is on and picked the one that seemed the most plausibly related to source maps.)
however having to create launch configs is inconvenient. i'm not sure anymore whether this a node or vscode issue, so let me know if you think i should raise it there instead.
Version
v18.10.0
Platform
Microsoft Windows NT 10.0.19044.0 x64
Subsystem
No response
What steps will reproduce the bug?
.ts
file that imports from a package that includes the source code and source maps, for example:tsc main.ts --sourcemap
exactly
function callnode main.js
F11
to step into the functionHow often does it reproduce? Is there a required condition?
every time
What is the expected behavior?
steps into the source code located at
./node_modules/@detachhead/ts-helpers/src/utilityFunctions/misc.ts
, as the@detachhead/ts-helpers
package includes its source code and source mapsWhat do you see instead?
stepped into compiled
.js
fileAdditional information
debugging in webstorm produces a slightly different result. instead of stepping into the
.js
file when pressing "step into", it just steps over insteadThe text was updated successfully, but these errors were encountered: