-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add device.reactNativeDebugRemotely(bool) #637
Comments
I cannot say I am really inclined to like this proposal. We've had issues with Also, what is the use-case here? We had a request for something in the area of this functionality, but that was from FB RN-core developers. They wanted to test the dev menu itself, so we added shake support to the device API. But what is the use-case for remote debug? |
@LeoNatan my original issue description does include the native code though for both platforms and also my use case as well 🙈 I do get the hesitation around additional RN functionality though as RN internal APIs seem to change every release. I've had issues myself with the reload functionality being flakey and had to swap it out for I think with a couple of people keeping on top of the RN releases this should be ok to keep these sorts of features going - something I can assist with? |
Sorry, I missed the link to the comment. Would you like to work on a PR for this feature? |
@LeoNatan ye sure I can give it a go - just wanted to make sure it was something you guys would consider before I invested the effort into PR'ing |
We are still considering how to handle community contributions properly. We don’t want to reach a place where we’ve accepted requests but then there is no one to support these features after the fact. Before you start work, let’s see what @rotemmiz has to say. |
@LeoNatan If it helps re support - it would be a fundamental part of our testing suite for |
Such a commitment does help a lot, thank you! Another issues worth considering is if the RN remote debugging works in release build. We normally recommend running Detox on release builds because they are closer to what the user experiences from an app. But release builds do not use the packager, which I think is necessary for remote debugging. I could be wrong. |
This is an issue we're dealing with at the very moment is that with a number of changes to our API, remote debugging would be very useful in order to verify that our mocks match what would be returned by the API. |
There has been no traction on this, and as I said before, I don't see us implementing support for this. Closing. If a PR is submitted, we will be willing to consider. |
Description
Would love to be able to toggle JS remote debugging programatically via the detox
device
api - much likedevice.reloadReactNative()
. My use case is as discussed here: #470 (comment)What are your thoughts on adding in this functionality? Is this something you'd be against, it should be fairly trivial change wise and I've curated and tested the snippets required to toggle it on each platform if it helps.
I could attempt to PR it - but might take me a while compared to someone who's familiar with the detox code base 🙈 - but if not I'll give it a go 😛
Proposal api: - ?
Android - Programatically toggle debugging
Tested and confirmed this in my
MainApplication.java -> onCreate
override.iOS - Programatically toggle debugging
Which resolves to this native code here: https://github.com/facebook/react-native/blob/master/React/Modules/RCTDevSettings.mm#L298
The text was updated successfully, but these errors were encountered: