vscode-php-debug: Stop using enableBreakpointsFor in package.json under debuggers contribution
Hi VS Code dev here š
Please stop using the enableBreakpointsFor
field in your package.json
.
It is deprecated and we will stop supporting it in our next stable release (in a month).
Hereās where you use it https://github.com/felixfbecker/vscode-php-debug/blob/master/package.json#L119
Hereās an alternative how you should use it https://github.com/microsoft/vscode-mock-debug/blob/master/package.json#L112
So the breakpoints
attribute is no longer under debuggers
that is the difference.
Hereās how react native tackled this deprecation https://github.com/microsoft/vscode-react-native/issues/1450
All the best isidor
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 15
- Comments: 42 (6 by maintainers)
As a workaround, you can use this setting to enable breakpoints everywhere:
BTW, the suggestion made in https://github.com/felixfbecker/vscode-php-debug/issues/424#issuecomment-743334478 does not have to live in the php-debug debug extension (or a fork of it). Instead a trivial extension could be created that just contributes this:
You can fix this by doing the following:
and add the following right above ādebuggersā
Just so the severity of this is clear: this breaks the extension rendering it almost completely unusable.
@felixfbecker I note that you havenāt done any development on this extension in over a year, if youāve abandoned it, please make that clear so peopleās expectations are set appropriately.
Yup. And by not fixing this before a full release, youāve just broken the 3.9 million installs this extension has.
@isidorn the issue isnāt necessarily the fix, itās a completely trivial change to the point that Iām surprised VSC doesnāt have some form of permanent backwards compatibility, the issue is releasing this in Felixās name, which you canāt do.
Felix hasnāt touched this repo in over a year, and there are two forks with both more active development and packages published in the VSC extension directory:
@tiansinās fork has fixed this particular issue and Works For Me as a replacement to this extension.
So if Felix has indeed abandoned this extension, the best path forwards is to make that clear (whatever that means) so people know to migrate to one of these forks.
FWIW, I would be happy to host this on the github.com/xdebug organisation and manage access and Pull Requests, but I do not use this myself, nor am I interested in working on the code, but I am happy to make releases.
We will push a workaround for this on the VS code side in the next stable release - probably in a couple of days.
@derickr thanks for the offer, itās a great idea to transfer it into the org. I think it would make a lot of sense as the README also contains help on how to set up XDebug and a lot of issues that are filed are often more related to config of XDebug. From the start Iāve always thought of this as a thin adapter for your debugger, which really does the heavy lifting šš» I personally do not use PHP at all anymore (personally or professionally) so I canāt spend free time on development and triaging the mass of issues, but Iām happy to setup publishing/CI pipeline and dependency upgrade tooling and review & merge a high quality PR.
I havenāt done this process before, but I think the first step needed would need to be for you to add me to the xdebug org so I can transfer the repo and give me enough permissions to setup the GitHub apps for it (e.g. Renovate).
š
We seem to be re-treading a lot of the same ground here.
For those who got here late, please read the comments before commenting.
To summarise:
Actions from here are either:
As the extension stands:
6 Mar 2019
So speaking objectively, looks like this plugin is abandoned for active development. And this is open source, not a paid product so support comes in a form of direct fixes from authors, PRs and self-help.
TL;DR: it sucks that this extension is abandoned given how popular it is but at the same time I think it is unreasonable to demand immediate support from authors when they give their products for free
On a side, I think either active fork should happen or additional members should be added so that they can actively make commits and merge PRs.
Thanks @gentig
Hi @felixfbecker, I have invited you. But I also donāt know how to move a repository. I think you can do that at https://github.com/felixfbecker/vscode-php-debug/settings and transfer ownership.
The latest stable VS Code (1.52.1) has a workaround for the missing adoption of the removed API.
Thanks @gentig Only for whom how me š ābreakpointsā: [{ ālanguageā: āphpā }], ādebuggersā: [{ ātypeā: āphpā, ālabelā: āPHPā, ā¦
@lwohlhart Thanks for the response. Iām on Windows 10, and I did get updated to 1.52.0 today. No issue on my end setting breakpoints (both with F9 and via the gutter). Was able to set a new breakpoint within a PHP file locally, in a Remote-SSH file, and in a Remote-WSL file. 𤷠(edit: I have āallow breakpoints everywhereā enabled, which is why I didnāt see the issue).