Figuring out whether the server is responding and debugging issues with remote
index setup is no easy task: add verbose logging for client side RPC requests
to relieve some pain.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/index/remote/Client.cpp | ||
---|---|---|
46–48 | (we don't ussually use const for locals) | |
51 | Including the request payload is IMO too much even at --log=verbose, we do this for LSP messages but those are more useful/central. Vlog the request and dlog the payload? (Similar to log/vlog for LSP) | |
75 | "RPC Request" may be a bit jargony for these messages. And "Request" is part of the RequestT name. What about Remote index: LookupRequest => 123 results in 18ms. [llvm.clangd-index-staging.org:1234]? |
(we don't ussually use const for locals)