Closed muhammadashfaq closed 2 weeks ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.6. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
@huntie
Hi @muhammadashfaq,
Since react native 0.72, Open debugger never works and throws error.
The error logged is intentional. Prior to 0.76, "Open Debugger" may act in two modes:
flipper://
URL scheme. As mentioned in the log you are seeing, you must have Flipper installed on your system for this to work.--experimental-debugger
) Attempts to open JS debugging in Chrome DevTools (this requires either Google Chrome or Microsoft Edge on your system).In both cases, Metro must be running.
I have tried yarn start --experimental-debugger but that's is not stable. It disconnects when you re-run the project and also cashes project on Xcode for iOS for android as well.
Unfortunately, the JS debugging experience shipped in these React Native versions was never entirely stable. Re disconnects, a couple of things to note are: 1/ yes, reconnect if you've closed or rebuilt your app (this should be a case of hitting j
to debug) 2/ make as much use of Fast Refresh as possible, rather than a full reload.
In React Native 0.76, we are fundamentally fixing this with the launch of React Native DevTools.
Description
Since
react native 0.72
,Open debugger
never works and throws error. This is the bug which wastes a lot of time in the debugging over Metro.Please update documentation and tell it's alternative because this is the bug which is costing development and debugging time.
I have tried
yarn start --experimental-debugger
but that's is not stable. It disconnects when you re-run the project and also cashes project on Xcode for iOS for android as well.Please update solution. @cortinico @cipolleschi @kevin-lyn
Steps to reproduce
React Native Version
0.74.1
Output of
npx react-native info
Screenshots and Videos
No response