brianegan/flutter_stetho

Provide ability to decode serialized responses

alanrussian opened this issue · 3 comments

We transport data using binary protos. Unfortunately, this means that responses look, for lack of a better term, like garbage in Stetho when using this plugin :(

Would it be possible for us to encode the responses in Dart before they get sent to the platform channel? It would probably have to be done at a higher level than HttpOverrides as we don't know the expected format in order to deseralize the data there.

Good call -- looks like the original Stetho package has support for this type of transformation. Would you be willing to help by submitting a PR for this use-case? I'll try to find time, but don't have a ton of free time in the next 3-4 of weeks!

There are great tools in golang that will receive he proxies data on your laptop and pipe them into chrome debugging tools.

But I have to admit I am quite curious about the Facebook library that converts the protobuf on the mobile.
Anyone got a link ??