This an extension to support debugging of grpc-web from the browser. It is using an exposed debugger interface which is currently in development.
The vision is to be able to debug gRPC web as easily as it is to use the Network tab in Chrome. To do this, we'd like to hear your use cases for the debugger. Please raise an issue :)
Very very much work in progress.
npm i && npm run compile
ornpm run watch
- Checkout https://github.com/easyCZ/grpc-web/tree/debugger and switch to the
debugger
branch - In
grpc-web
runcd ts && npm run lib:build && npm link
to create a symlink to the grpc web with the new debugger interface - In
grpc-web-devtools
donpm run link grpc-web-client
- Load unpacked chrome extension from
grpc-web-devtools/build
- Run the example in
grpc-web/example
withnpm run start
- Visit the example page and open devtools, you should see a
gRPC
tab
Responsible for initialization of a gRPC developer tools panel devtools.js & devtools.html
Actual panel implementation inside the chrome developer tools
Attaches window.__GRPC_WEB_DEVTOOLS__
to the window and make it accessible to the client application
Injects injected.js
into the client page and implements MPI to talk to the panel