vscode-php-debug icon indicating copy to clipboard operation
vscode-php-debug copied to clipboard

Autoinstall - a very simple and important feature

Open ttodua opened this issue 3 years ago • 2 comments

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:

  1. check php PATH environment variable to determine the php path
  2. run phpinfo() in the background
  3. send output to https://xdebug.org/wizard
  4. download the suggested file and move to the needed location, rename file
  5. 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.

ttodua avatar Jul 21 '22 10:07 ttodua

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

zobo avatar Jul 21 '22 16:07 zobo

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.

ttodua avatar Jul 21 '22 16:07 ttodua