next-purescript-example icon indicating copy to clipboard operation
next-purescript-example copied to clipboard

Debugging/sourcemaps in VSCode

Open alaendle opened this issue 2 years ago • 3 comments

Any idea how to make debugging/sourcemaps work to debug this example in VSCode? (https://github.com/purescript/spago#get-source-maps-for-my-project)

alaendle avatar Apr 08 '22 15:04 alaendle

@alaendle

This might be fixed since PureScript version 0.15.3 (current is 0.15.4) but maybe there is still an issue with Spago:

https://github.com/purescript/spago/issues/877

Let me know if you are still interested in finding out more about this and maybe I can find some time to help you with it.

i-am-the-slime avatar Jul 01 '22 09:07 i-am-the-slime

To be honest it's pure curiosity, but I'd still be interested - probably it's somehow due to the interaction with the complex example here, but a simple compiler update hasn't led to success yet. I would now have to take a step back and learn the basics of working with source maps on a new and simple project.

alaendle avatar Jul 01 '22 11:07 alaendle

Here's what works for me:

spago build --purs-args "-g sourcemaps"

i-am-the-slime avatar Jul 03 '22 21:07 i-am-the-slime