koush / vscode-quickjs-debug

QuickJS Debug Adapter for VS Code
MIT License
148 stars 27 forks source link

debug typescript help #6

Open runhwguo opened 1 year ago

runhwguo commented 1 year ago

hi, koush,your work is very good, it make us could debug javascript in quickjs with vscode.

now, i want to debug typescirpt because my project use typescript, how could i do, please provide some guidance.

runhwguo commented 1 year ago

i see the source code maybe support typescript debug, could give a example with vscode.

eloparco commented 10 months ago

Hi @runhwguo, did you get it to work in the end? I'm attempting the same thing, here my branch: https://github.com/eloparco/quickjs/commit/8e02468b62246d39d0380debe34929406bfd7d13

When I try it, I end up here https://github.com/koush/vscode-quickjs-debug/blob/master/src/sourcemapSession.ts#L118 because unmappedPositions is empty, so the source mapping is not set. @koush, do you have any suggestions?