SafetyCulture / grpc-web-devtools

Chrome & Firefox Browser extension to aid gRPC-Web development
MIT License
407 stars 52 forks source link

Electron support #76

Open requilence opened 3 years ago

requilence commented 3 years ago

I've tried to run this extension inside the electron 11.0.2(chromium 87) with no luck. I have successfully connected it with the grpcweb client, sendGRPCNetworkCall catches all the msgs from grpcweb. chrome.runtime.connect and port.postMessage run without any error, but the devtools gRPC-Web panel show no requests. I cannot debug further because I can't find a way to enable the Extension Developer mode in the Electron. The console also doesn't contain any msgs from the extension.

Your extension looks really promising and I will appreciate any help from your side to debug this issue 🙏

younes-io commented 3 years ago

I'm also trying to make this work on Electron, but it seems that there is not maintained

yansenlei commented 2 years ago

same issues

yansenlei commented 2 years ago

I tried to run the following information in Electron:

  1. Can get interception information, write log in index.html: image image

  2. But Panel does not have any information: image

  3. If I fake data in Index.js, Panel lists work fine:

    store.dispatch(networkLog( mockData ))

    image

The cause of the cause may be that the listener does not work properly: https://github.com/SafetyCulture/grpc-web-devtools/blob/master/src/index.js#L18

Waiting for a reply... 🙏

@rogchap @requilence @younes-io