Documentation on client-side debugging
mb720 opened this issue · 1 comments
mb720 commented
Hi!
I'd like to offer my help for adding instructions to scala-js.org on how to debug Scala.js code in the browser using source maps.
I've seen there are plans to add that kind of documentation but so far I've found nothing related on the website.
I'd be happy to collect expertise, caveats, and SBT configs, write that up in a step-by-step guide and create a pull request.
Regarding IDEs, I'd suggest, we include instructions for debugging in IntelliJ and Chrome DevTools.
sjrd commented
By all means, please do 👍
I don't have much to offer though apart from
- Make sure source maps are enabled in the browser
- In case things are too obscure, use
scalaJSLinkerConfig ~= { _.withOptimizer(false) }
in sbt,clean
and rebuild