aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/README.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-29 13:12:36 +0100
committerGitHub <[email protected]>2021-03-29 13:12:36 +0100
commit80ebd0108c21062f9e3a69d96f6a40fe2682f7bd (patch)
tree7660e2d22d6d18a659428aa7f8243b54bd294a27 /docs/dev/README.md
parentae7de296ae476708781ac367e0406454c8e6c335 (diff)
parentb352b90c86e96fe1416f4527c1c88dc2c2c17451 (diff)
Merge #8235
8235: internal: make --log-file more discoverable r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs/dev/README.md')
-rw-r--r--docs/dev/README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/dev/README.md b/docs/dev/README.md
index 57162a47d..dcbab1a1d 100644
--- a/docs/dev/README.md
+++ b/docs/dev/README.md
@@ -135,12 +135,15 @@ panel and select `rust-analyzer`. This shows `eprintln!` as well. Note that
135 135
136To log all communication between the server and the client, there are two choices: 136To log all communication between the server and the client, there are two choices:
137 137
138* you can log on the server side, by running something like 138* You can log on the server side, by running something like
139 ``` 139 ```
140 env RA_LOG=lsp_server=debug code . 140 env RA_LOG=lsp_server=debug code .
141 ``` 141 ```
142 142
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":
144 "verbose"` workspace setting. These logs are shown in a separate tab in the 147 "verbose"` workspace setting. These logs are shown in a separate tab in the
145 output and could be used with LSP inspector. Kudos to 148 output and could be used with LSP inspector. Kudos to
146 [@DJMcNab](https://github.com/DJMcNab) for setting this awesome infra up! 149 [@DJMcNab](https://github.com/DJMcNab) for setting this awesome infra up!