vscode-php-debug
vscode-php-debug copied to clipboard
Autoinstall - a very simple and important feature
Hi, thanks for extension. (i am not well-versed in VSCode extensions, otherwise i would have made a PR instead of issue) There is a very simple and important thing you can do - in readme you describe the whole process of installing xdebug manually. it's 2022 and we are still doing manual actions to download/install/etc, so, if you can, please take a step forward and do this if you can:
- check php
PATHenvironment variable to determine thephppath - run
phpinfo()in the background - send output to
https://xdebug.org/wizard - download the suggested file and move to the needed location, rename file
- update php.ini as written there (if it needs to be updated at all).
That will do the job. which 7million ppl seems to be doing manually. thanks.
Hi @ttodua, thanks for the message.
Indeed this is on the "roadmap", almost exactly as you described it. I already started talks with Derick of Xdebug to implement an API interface for checks against the wizard page.
On windows this is a matter of downloading a .dll. On Linux systems it's usually a matter of the right package manager. On MacOS maybe brew?
This is the related task https://github.com/xdebug/vscode-php-debug/issues/672
Exactly, on first thought I wondered whether there might appear api-like endpoint for it, and good you have talked with him. hoping that day will come soon. even though that 'wizard' page kinda made process a bit easier for ppl, still, enabling the debugger and downloading packages manually and the setup process... has been struggling for decades.
about OS - I am mostly on Windows and can't say about other packages to be honest, but I hope you will find a correct path for that. Thanks for the work.