-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to debug with the new documentation? #469
Comments
I do remember that I used to borrow configuration from somewhere else, so it may not be the change of documentations. (unfortunately I lost my launch.json) But I still struggle with debugging following https://pygls.readthedocs.io/en/latest/howto/use-the-pygls-playground.html, I have I am using the |
When it comes to debugging, there shouldn't be any difference between 1+2 (as it's the same extension), just the steps to get VSCode into a state where you can enable the playground itself are different. Of course that's the theory, there maybe something I've overlooked 😅 The good(?) news is that I see the same behaviour as your gif, almost everything is working except that the breakpoints aren't working. Removing the following lines from
Does that work for you? (I really don't understand what this option does, or why we added it in the first place...)
Yes, I can imagine! 😅, it should be easy enough to add an option to the playground to disable that. |
I suspect this is related but I am also very confused with how debugging work in VSCode in general. I have two different errors:
I cannot make it work yet, but this settings work for my extension, borrow from the Microsoft template. I notice they have this configuration
|
That's annoying, I know @tombh has had issues like that in the past, I wish I knew why... unfortunately/fortunately for me, these things tend to just work for me, so I don't have many ideas on what to try :/ So that we can focus on the debugging bit first, you can try setting the
That is weird... is that something you only see when trying to debug? Or can it happen in non-debug mode also?
Looking at the code, I think that is an option specific to the template, looks like they launch a dedicated debug script... |
https://pygls.readthedocs.io/en/latest/howto/use-the-pygls-playground.html
There are new instructions for differetion VSCode versions now:
For 1, It doesn't seem to work for me when I add debugger I see the server get restarted but the breakpoint is not triggered (LSP working normally).
For 2, am I suppose to launch a debugger separately? and how do I attach the debugger properly?
The text was updated successfully, but these errors were encountered: