在Language Server Extension Guide中说:
'If you are using
vscode-languageclient
to implement the client, you can specify a setting[langId].trace.server
that instructs the Client to log communications between Language Client / Server to a channel of the Language Client'sname
.For lsp-sample, you can set this setting:
"languageServerExample.trace.server": "verbose"
. Now head to the channel "Language Server Example". You should see the logs:
最佳答案
我为php语言服务器所做的工作是将"log": true
添加到launch.json文件中,然后当您按f5键开始调试时,编译器将尝试显示日志。但是,从我从您在问题中共享的文档中了解的内容来看,您可以按照以下说明进行操作(我不保证这将起作用,正如我提到的,这是您在问题中共享的说明):
关于visual-studio-code - 如何在Visual Studio Code中启用语言服务器的日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52447872/