chandu0101 / sri

Build truly native cross platform (web,ios,android) apps using scalajs and react, react-native ,This project moved to new organization : https://github.com/scalajs-react-interface/sri#sri, new chat room : https://gitter.im/scalajs-react-interface/sri
Apache License 2.0
634 stars 35 forks source link

Debug Scala.js #37

Open mmelitzer opened 8 years ago

mmelitzer commented 8 years ago

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 :-(?

chandu0101 commented 8 years ago

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

mmelitzer commented 8 years ago

In the web app it works like a charm

mmelitzer commented 8 years ago

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