react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

No sourcemaps when running on Android emulator

Open b99andla opened this issue 8 years ago • 10 comments

I cant debug the sourcemaps from my project when running my project in debug mode in the Android emulator. It works fine when running debug mode from XCode and iOS emulator, then I can access my codefiles via the sourcemaps.

When running the project in Android, I cant view my original files via sourcemaps. It works if I do the debbugging in Chrome directly instead of React Native Debugger. Ive also tried reinstalling React Native Debugger.

React Native Debugger app version: 0.7.13 React Native version: 0.47.1 Platform: Android Is real device of platform: Android emulator Operating System: macOS

b99andla avatar Dec 19 '17 12:12 b99andla

Is Enable JavaScript source maps disabled on devtools settings? Reinstalling the app doesn't reset the setting. You can try to Restore defaults and settings on devtools settings.

jhen0409 avatar Dec 19 '17 14:12 jhen0409

Thanks @jhen0409 "Restore defaults" did the trick! This can be closed!

b99andla avatar Dec 20 '17 08:12 b99andla

@jhen0409 I am having this same issue, and have checked the Enable JavaScript source maps setting on and off with no change. Similarly, Restore defaults and reload has not helped this at all (and, curiously, doesn't actually reload the app. I have to manually close and reopen, but I can tell that it is restoring at least the appearance theme, making me think it must be doing something).

Similar to the OP, I can see my sourcemaps fine when debugging in Chrome as well as when debugging iOS.

For reference, I am using Debugger app version: 0.7.13 RN Version: 0.53.3 Platform: Android Real or emulator: emulator OS: macOS High Sierra 10.13.2

steveccable avatar Mar 06 '18 14:03 steveccable

I have the same issue. Started happening after I upgraded from react-native 0.53.0 to 0.54.0

xanderberkein avatar Mar 09 '18 09:03 xanderberkein

It may starting from RN 0.52, the default chrome debugger start using the new Delta bundler, and I have noticed the older bundler didn't load source map successfully. I don't know if it's bug, but it's time to support Delta bundler for newer RN versions, please tracking #158.

jhen0409 avatar Mar 14 '18 03:03 jhen0409

I have this issue also. Using chrome debugger for now.

alexfoxy avatar Mar 14 '18 12:03 alexfoxy

It should be fixed by #211, I'll release the new version later.

jhen0409 avatar Mar 14 '18 13:03 jhen0409

@jhen0409 how can I build from the master source?

alexfoxy avatar Mar 14 '18 14:03 alexfoxy

@alexfoxy you can follow the documentation.

jhen0409 avatar Mar 14 '18 15:03 jhen0409

FYI, this is still broken for me on RN 0.55.2. Since it looks like you had releases between the fix went in and now, I'm guessing it probably got fixed and then re-broken on a later version of RN.

steveccable avatar Jun 15 '18 19:06 steveccable