How can I debug freezes in LTeX? #132
-
From time to time, LTeX has a constantly high CPU usage and I have to manually kill the executable. Sadly, I haven't found a way to reproduce it. Can I do something to narrow down the origin of the bug? How do you debug or get memory dumbs from extensions? Version information
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Read the docs on how to report bugs. It's also a little bit about how to debug. Especially the logs can help to understand the issue. The no. 1 suspect for freezes like this is wrong settings caching like in #29 (comment). Probably your bug is a duplicate of #96 (unfortunately, the submitter did not provide sufficient info to help me find the bug). In 7.1.2, I added specific logging to be able to better debug this (as that bug is still in there). Look for lines containing Even if it's not due to wrong settings caching, looking at the logs still might help. If you want help, please submit a new complete bug report; use the command Regarding the more general question of how to debug VS Code extensions, the canonical way is to clone the repo, run |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information, and sorry for not being able to provide more information. The bug that I'm experiencing is somewhat different in that the CPU usage is at about 20% (all in the ltex-ls java process) but it hangs there constantly. That is, even after waiting for several mins nothing happens and I have to kill the exe myself. I'll try to investigate a bit more the next time the bug occurs, and will open a new issue then. |
Beta Was this translation helpful? Give feedback.
Read the docs on how to report bugs. It's also a little bit about how to debug. Especially the logs can help to understand the issue.
The no. 1 suspect for freezes like this is wrong settings caching like in #29 (comment). Probably your bug is a duplicate of #96 (unfortunately, the submitter did not provide sufficient info to help me find the bug). In 7.1.2, I added specific logging to be able to better debug this (as that bug is still in there). Look for lines containing
Reinitializing LanguageTool due to different settings
in the server log.Even if it's not due to wrong settings caching, looking at the logs still might help. If you want help, please submit a new complete bug report; us…