4 ms·
How might a Language Server Protocol (LSP) work for debugging? And predictive debugging in particular? Any examples you've seen? Do LSPs have a mechanism by whi
by xpe 3y ago
How might a Language Server Protocol (LSP) work for debugging? And predictive debugging in particular? Any examples you've seen? Do LSPs have a mechanism by which debugging could work? (I haven't researched this yet.)
Note: I ask the above questions in an attempt to move the conversation towards predictive debugging. Like many, I visited this thread because I'm interested in the core topic: debugging. We're probably not here for a general discussion about the pros and cons of JetBrains / non open-source software / IDEs.
- deleted 3y ago[deleted]
- Groxx 3y agoThe LSP version of debuggers is essentially DAP, and it is gaining some support: https://microsoft.github.io/debug-adapter-protocol/ https://microsoft.github.io/debug-adapter-protocol/ Like LSP it's a bit crippled compared to a normal debugger, but the universally-pluggable aspect is compelling.
- xpe 3y agoThanks for sharing. I can see why are you excited about this. For others who might not click through: > What is the Debug Adapter Protocol? > Adding a debugger for a new language to an IDE or editor is not only a significant effort, but it is also frustrating that this effort can not be easily amortized over multiple development tools, as each tool uses different APIs for implementing the same feature. > The idea behind the Debug Adapter Protocol (DAP) is to abstract the way how the debugging support of development tools communicates with debuggers or runtimes into a protocol. Since it is unrealistic to assume that existing debuggers or runtimes adopt this protocol any time soon, we rather assume that an intermediary component - a so called Debug Adapter - adapts an existing debugger or runtime to the Debug Adapter Protocol.