React-native-debugger: No sourcemaps when running on Android emulator

Created on 19 Dec 2017  路  10Comments  路  Source: jhen0409/react-native-debugger

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

Most helpful comment

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

All 10 comments

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.

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

@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

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

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.

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

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

@jhen0409 how can I build from the master source?

@alexfoxy you can follow the documentation.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blackxored picture blackxored  路  16Comments

getaaron picture getaaron  路  16Comments

AndrewMorsillo picture AndrewMorsillo  路  15Comments

eshikerya picture eshikerya  路  39Comments

peggyrayzis picture peggyrayzis  路  43Comments