在调试 grpc 时,偶然了解到一个好用的调试工具 grpcui
安装
go get github.com/fullstorydev/grpcui
go install github.com/fullstorydev/grpcui/cmd/grpcui
使用
grpcui 通过监控反射出来的端口,进行的调试,所以启动的 server 需要提供反射
reflection.Register(s)
运行
grpcui-plaintext127.0.0.1:9002
效果
在调试 grpc 时,偶然了解到一个好用的调试工具 grpcui
go get github.com/fullstorydev/grpcui
go install github.com/fullstorydev/grpcui/cmd/grpcui
grpcui 通过监控反射出来的端口,进行的调试,所以启动的 server 需要提供反射
reflection.Register(s)
运行
grpcui-plaintext127.0.0.1:9002
效果