Skip to content

Commit 80ebd01

Browse files
bors[bot]matklad
andauthored
Merge #8235
8235: internal: make --log-file more discoverable r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents ae7de29 + b352b90 commit 80ebd01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/dev/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,15 @@ panel and select `rust-analyzer`. This shows `eprintln!` as well. Note that
135135

136136
To log all communication between the server and the client, there are two choices:
137137

138-
* you can log on the server side, by running something like
138+
* You can log on the server side, by running something like
139139
```
140140
env RA_LOG=lsp_server=debug code .
141141
```
142142

143-
* you can log on the client side, by enabling `"rust-analyzer.trace.server":
143+
By default, logs go to stderr, `--log-file <PATH>` CLI argument overrides
144+
that.
145+
146+
* You can log on the client side, by enabling `"rust-analyzer.trace.server":
144147
"verbose"` workspace setting. These logs are shown in a separate tab in the
145148
output and could be used with LSP inspector. Kudos to
146149
[@DJMcNab](https://github.com/DJMcNab) for setting this awesome infra up!

0 commit comments

Comments
 (0)