scala-js-website icon indicating copy to clipboard operation
scala-js-website copied to clipboard

Documentation on client-side debugging

Open mb720 opened this issue 8 years ago • 1 comments

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.

mb720 avatar Sep 09 '17 16:09 mb720

By all means, please do :+1:

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

sjrd avatar Sep 09 '17 17:09 sjrd