Skip to content

Commit 2681278

Browse files
committed
docs
1 parent 384a6b4 commit 2681278

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

docs/troubleshooting.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@ All supported editors have options to set the __server args__ to help with that
66

77
To change and access the logs:
88

9+
### Server logs
10+
11+
This controls what's logged by server on its actions, you can control to log more things via `--log-level debug` server arg.
12+
This should help log LLM outputs, and other useful stuff.
13+
914
=== "Emacs"
1015

11-
`(setq eca-extra-args '("--log-level" "debug"))`
16+
```elisp
17+
(setq eca-extra-args '("--log-level" "debug"))
18+
```
1219

1320
`M-x` `eca-show-stderr`
1421

@@ -32,15 +39,38 @@ To change and access the logs:
3239

3340
`EcaShowLogs`
3441

35-
### Server logs
36-
37-
This controls what's logged by server on its actions, you can control to log more things via `--log-level debug` server arg.
38-
This should help log LLM outputs, and other useful stuff.
39-
4042
### Client<->Server logs
4143

4244
ECA works with clients (editors) sending and receiving messages to server, a process, you can start server `--verbose` which should log all jsonrpc communication between client and server to `stderr` buffer like what is being sent to LLMs or what ECA is responding to editors.
4345

46+
=== "Emacs"
47+
48+
```elisp
49+
(setq eca-extra-args '("--verbose"))
50+
```
51+
52+
`M-x` `eca-show-stderr`
53+
54+
=== "VsCode"
55+
56+
```javascript title="your-json-preferences"
57+
{
58+
"eca.serverArgs": "--verbose"
59+
}
60+
```
61+
62+
Check the output channel `ECA stderr`.
63+
64+
=== "IntelliJ"
65+
66+
Add to `Tools` > `ECA` > `Server args`: `--verbose`
67+
68+
Via action 'ECA: Show server logs'.
69+
70+
=== "Nvim"
71+
72+
`EcaShowLogs`
73+
4474
## Doctor command
4575

4676
`/doctor` command should log useful information to debug model used, server version, env vars and more.

0 commit comments

Comments
 (0)