sri icon indicating copy to clipboard operation
sri copied to clipboard

Debug Scala.js

Open mmelitzer opened this issue 8 years ago • 3 comments

Is there any way to debug the Scala.js code in Chrome when running in the react-native in the iOS Simulator (or anyhow else), I'm only able to debug using the generated index.ios.js :-(?

mmelitzer avatar May 13 '16 15:05 mmelitzer

good question , i never tried that infact i never debugged scala code using source maps in web app even , hope some scala.js source map pro can help ..

chandu0101 avatar May 13 '16 15:05 chandu0101

In the web app it works like a charm

mmelitzer avatar May 13 '16 15:05 mmelitzer

The sourcemap gets created for both fast and fullOptJS, Chrome can't resolve it though even after copying the files and updating the links. Seems like the issue isn't with Scala.js but with react/react-packager, will try to get it to work with this tomorrow: https://github.com/mjohnston/react-native-webpack-server

mmelitzer avatar May 13 '16 21:05 mmelitzer