Skip to content

Commit 34acd6e

Browse files
authored
Add debugging info
1 parent ba3c25f commit 34acd6e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,22 @@ To enable sorting of imports using ruff's isort functionality, add `"I"` to the
9595
`python-lsp-ruff` supports code actions as given by possible fixes by `ruff`. `python-lsp-ruff` also supports [unsafe fixes](https://docs.astral.sh/ruff/linter/#fix-safety).
9696
Fixes considered unsafe by `ruff` are marked `(unsafe)` in the code action.
9797
The `Fix all` code action *only* consideres safe fixes.
98+
99+
## Debugging
100+
101+
The log level can be set via the `cmd` option of `pylsp`:
102+
103+
```lua
104+
lspconfig.pylsp.setup {
105+
cmd = {"pylsp", "-vvv", "--log-file", "/tmp/lsp.log"},
106+
settings = {
107+
pylsp = {
108+
plugins = {
109+
ruff = {
110+
enabled = true,
111+
},
112+
}
113+
}
114+
}
115+
}
116+
```

0 commit comments

Comments
 (0)