Summary: This diff makes sure that errors are propagated similarly in flipper desktop and browser version, and that they are shown in either case. Since in the browser version, the UI loads after the error happened, we'll store the error so that any client connecting in the future will read and report it. Also added a `--failFast` flag to flipper-server, so that the process exits immediately if misconfigured, which is convenient in CI use cases and such Reviewed By: nikoant Differential Revision: D33348922 fbshipit-source-id: 0f584104f881141fde38da3f0031748415343ea2
flipper-dump
Stand alone Flipper command, that uses flipper-server-core to connect to apps and dump all incoming messages.
To get started, run yarn install in the desktop/ folder once.
This package is currently a proof of concept and can be used like:
yarn start --device='iPhone 12' --client='Instagram' --plugin='AnalyticsLogging'
Or to capture all output to a file (meta messages will be printed on STDERR):
yarn --silent start --device='iPhone 12' --client='Instagram' --plugin='AnalyticsLogging' > out.txt
Future features:
- Package so that it can be run using
npx - Support filter & transformation functions
- See
TODOs in code - Support better configuration
- Custom formatting
- [FB] Support Certificate Exchange clients