Post

I’m seeing runtime panics when trying to test against my repo (slice bounds out of range). Any debugging tips for trying to get a small repro so I can open an issue? The repo is large (1.5m lines of TS).

The build we publish is missing debugging information (for size reasons); the easiest thing to do is to clone typescript-go from source, then debug it there. From there, you should be able to add a launch task to run a Go program (the Go extension comes with some templates) to run ./cmd/tsgo.

Of course, best thing would be to file an issue now (even without the repro) as the backtrace is likely to help. Better still if you can provide the code!

0 reposts2 likes