How to collect LSP logs?

Background/Situation

You need to collect logs from any of the following language services or LSP servers for troubleshooting: Tailwind CSS, TypeScript Go, Vue, Svelte, Astro, Deno, Prisma, TypeScript service, Angular TypeScript service, Vue TypeScript Service, Prettier, ESLint, TSLint.

Question

How to collect LSP logs?

Answer

  1. Add the com.intellij.platform.lsp logging category in Help | Diagnostic Tools | Debug Log Settings…
  2. Restart the IDE
  3. Reproduce the issue
  4. Zip the IDE logs via Help | Collect Logs and Diagnostic Data…

*When this logging category is added, LSP logs are created in the log/language-services directory.

 

1 out of 1 found this helpful
1 comment

Collecting the LSP logs immediately after reproducing the problem makes a big difference, since you can see the exact request or error that triggered it instead of trying to guess from the symptoms.

0

Please sign in to leave a comment.

Have more questions?

Submit a request