HomePhabricator
Diffusion Comm 016164417126

[redux-dbg] Make instances remotely debuggable

Description

[redux-dbg] Make instances remotely debuggable

Summary: Makes the Redux, @react-navigation/devtools and SquadCal instances available for debugging. The patch of remote-redux-devtools lib is required for import functionality to work. Since we are patching the code that's already built, I decided to keep those changes in a fork that can be found here. This requires running remotedev server to work. At this point importing a crash report works fine.

Test Plan: launch remotedev server alongside with metro. Go to chrome, open up Redux Devtools extension -> Open Remote Devtools. Run the app and check if you can see three items mentioned in the description on the instances list. To check the import feature, trigger a crash from comm's Developer menu -> copy the crash code, download it using localhost/comm/download_error_report/XXX(where XXX is the crash code you copied). After that, relaunch the app, navigate somewhere else(the best option is to log out) and then in Chrome's Redux Devtools click Import button -> browse finder to find a crash report file you downloaded, pick it and confirm. Check if the app reconstructs the state from before the crash.

Reviewers: palys-swm, ashoat

Reviewed By: palys-swm, ashoat

Subscribers: ashoat, KatPo, zrebcu411, Adrian, atul, subnub

Differential Revision: https://phabricator.ashoat.com/D938

Details

Provenance
karolAuthored on Mar 30 2021, 1:12 AM
Reviewer
tomek
Differential Revision
Restricted Differential Revision
Parents
rCOMMff5a3c166d6a: Update linting config
Branches
Unknown
Tags
Unknown