jonasbuntinx / next-purescript-example

Simple example app using Next.js with Purescript
https://next-purescript-example.netlify.app/
MIT License
66 stars 10 forks source link

Debugging/sourcemaps in VSCode #9

Open alaendle opened 2 years ago

alaendle commented 2 years ago

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)

i-am-the-slime commented 2 years ago

@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.

alaendle commented 2 years ago

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.

i-am-the-slime commented 2 years ago

Here's what works for me:

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