allow global debug/non-debug setting via env var
ClosedPublic

Authored by cullmann on Jul 22 2019, 5:19 AM.

Details

Summary

get debug output (for the plugin and the called servers)

export LSPCLIENT_DEBUG=1

At the moment the plugin is "very" verbose and just setting
QT_LOGGING_RULES in the env isn't enough as you need to e.g.
alter the clangd start command

I propose the env var to let people handle this,
we can use the m_debugMode for starting other LSP servers
in verbose/non-verbose mode later, too

Diff Detail

Repository
R40 Kate
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14246
Build 14264: arc lint + arc unit
cullmann created this revision.Jul 22 2019, 5:19 AM
Restricted Application added a project: Kate. · View Herald TranscriptJul 22 2019, 5:19 AM
Restricted Application added a subscriber: kwrite-devel. · View Herald Transcript
cullmann requested review of this revision.Jul 22 2019, 5:19 AM

This makes setting the plugin verbose/non-verbose much easier.
Default is non-verbose, which makes it more convenient for people to try it out, my colleagues already complaint about the massive output, that is only good for debugging purpose.

mnauwelaerts accepted this revision.Jul 22 2019, 5:47 PM

Yeah, I have been slacking a bit in that area ...

This revision is now accepted and ready to land.Jul 22 2019, 5:47 PM
This revision was automatically updated to reflect the committed changes.