Debugging pygls language server extensions in VSCode

89 Views Asked by At

I am working on Python-based language server (for a domain-specific lanaguage) and VSCode extension using pygls. I have followed the steps in the README and am trying to follow the tutorial. The tutorial suggests setting a VSCode breakpoint in the completion function in the sample code (though I think it's a mistake, completions is correct), but the breakpoint never triggers. I've tried a number of things to no avail -- and I'm also fundamentally not understanding how a node process would trigger a python breakpoint anyway. Doing a print or other similar logging works well, so I know the code is being executed.

Any suggestions?

0

There are 0 best solutions below