Skip to content

Commit 681c6ee

Browse files
committed
Add troubleshooting secion
1 parent 1d6024e commit 681c6ee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/user/readme.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ You'll need Cargo, nodejs and npm for this.
9898

9999
Note that installing via `xtask install` does not work for VS Code Remote, instead you'll need to install the `.vsix` manually.
100100

101+
==== Troubleshooting
102+
103+
Here are some useful self-diagnostic commands:
104+
105+
* **Rust Analyzer: Show RA Version** shows the version of `rust-analyzer` binary
106+
* **Rust Analyzer: Status** prints some statistics about the server, like the few latest LSP requests
107+
* To enable server-side logging, run with `env RUST_LOG=info` and see `Output > Rust Analyzer Language Server` in VS Code's panel.
108+
* To log all LSP requests, add `"rust-analyzer.trace.server": "verbose"` to the settings and look for `Server Trace` in the panel.
109+
* To enable client-side logging, add `"rust-analyzer.trace.extension": true` to the settings and open the `Console` tab of VS Code developer tools.
110+
101111
=== Language Server Binary
102112

103113
Other editors generally require `rust-analyzer` binary to be in `$PATH`.

0 commit comments

Comments
 (0)