diff options
author | Aleksey Kladov <[email protected]> | 2021-03-29 13:11:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-03-29 13:11:31 +0100 |
commit | b352b90c86e96fe1416f4527c1c88dc2c2c17451 (patch) | |
tree | 7660e2d22d6d18a659428aa7f8243b54bd294a27 /docs | |
parent | ae7de296ae476708781ac367e0406454c8e6c335 (diff) |
internal: make --log-file more discoverable
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/README.md | 7 |
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 | ||
136 | To log all communication between the server and the client, there are two choices: | 136 | To 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! |