-
Notifications
You must be signed in to change notification settings - Fork 10
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
Consider offering debugger as a separate extension #355
Comments
I have the same opinion about this. This should be separate extensions. |
@zobo @kanlukasz Thank you for the suggestion! Yes, that would make sense. Technically, our debugger implementation uses many features from the language server (it analyses side-effects of evaluated expressions, avoids evaluating dangerous code in tooltips, provides debug inline values, provides completion in the Watch panel, integrates with Splitting the extension in two is possible (they would need to communicate through VS Code API). Still, Debug extension alone (without the PHP extension) would lack essential features. From experience, I would expect a lot of users will complain that it doesn't work as advertised ... I'd rather be looking for some VSCode setting, that would allow specifying the preferred debug extension (the same as they have it for specifying preferred code formatter). |
got it - we can have a setting that would disable/enable our debugger. |
Hi @jakubmisek thanks so much for getting back on this! I completely understand - and know - that enhancing a DAP only debugger extension requires support from a LSP extension (most notably the mentioned inline value providers as well as evaluatable expression providers) so having your debug extension without the "main" one would make no sense. The debugger part could define a I'm not sure about In the end I agree with you that ideally this would be something VS Code handles to some extent, code formatters for example. I'll reach back out to Microsoft see if we can get any guidance how to best approach this issue. |
Got some interesting feedback from Microsoft regarding this situation. Apparently one approach would be to use a variable as you suggested - not sure yet how to detect that there is another extension registering the same debug type - or a split, the same way python debugger is doing. |
Hi all.
I maintain vscode-php-debug and occasionally get issues, where it turns out users have installed both extensions and end up using the debugger implementation from this extension. Since both extensions register the same debugger type - in this case behavior in vscode is undefined - I have no option to help those users. Aside from asking them to disable this extension, where they loose all the other functionality with it.
I believe the correct way would be to provide the debugger as a separate extension and bring it in with an extensionPack. This would allow users to selectively enable or disable them, but would easily be installed with the main extension.
Would you consider such a change?
Thanks and all the best.
The text was updated successfully, but these errors were encountered: