Open battlekeys opened 6 years ago
I will take a look
Понедельник, 20 ноября 2017, 16:40 +03:00 от battlekeys notifications@github.com:
When I try to add the php.cmd as a new CLI Interpretor in PHPStorm the "Checking PHP Installation" window opens and does not finish at all. If I click the "Cancel" button, the window will close and all the fields will be filled. But "Open php.ini in Editor" give me an error. Please see screenshorts. As a result, xdubug don't work. Could you help me?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .
Did you look?
Everything should work fine. Here is my conf. To edit php.ini run bash.exe and add xdebug there. And yes, checking could not work, press cancel checking and then OK button. https://user-images.githubusercontent.com/29253087/33225490-442b7f52-d181-11e7-8396-9292711ef443.png
The problem is not in editing php.ini. The problem is the PhpStorm does not stop at breaking points. I have 2 configurations: one for OpenServer and one for WSL. The configuration for OpenSrever is working without any problem. The WSL configuration does not work.
Show your xdebug config from WSL
Here is my php.ini connfig: [Xdebug] zend_extension = /usr/lib/php/20151012/xdebug.so xdebug.remote_autostart=1 xdebug.remote_enable=1 xdebug.remote_handler="dbgp" xdebug.remote_host="localhost" xdebug.remote_port=9001 xdebug.remote_mode=req xdebug.idekey="PHPSTORM"
So yes, i cant debug too, in my case i am trying to run phpunit but it cant find ide-phpunit.php. Try to use almost same php versions on windows and linux 7&7 or 5&5.
I use the same php versions on windows and linux: both are php7.0 But it does not help: debug does not work. Is it possible to fix it?
The only option now is to use ssh tunel for CLI scripts debug, check this: https://mobilefish.de/debugging-php-cli-scripts-phpstorm-which-are-running-inside-remote-server
The other option - check Stop in the first line in debug options window and you will see the error and possible solution from jetbrains
Then, as I believe, is your extension absolutely useless? Is it not working in any case at all?
It worked before)) Try this https://user-images.githubusercontent.com/29253087/33229839-ee49a1d6-d1df-11e7-8e20-a937f98ec8b6.png P.S. And it is not mine)) I have only patched it to use with php unit
Yes but not now. It's a pity. Thank you for your attention. If you find any solution in the future please let me know.
https://user-images.githubusercontent.com/29253087/33229839-ee49a1d6-d1df-11e7-8e20-a937f98ec8b6.png
How did you see this error? I don't have any info in my debug variables ...
Ok, i've managed it.
$linuxCmd = ($envValues ? $envValues . ' ' : '') . 'php ' . implode(' ', $arguments);
add this $envValues = ' PHP_IDE_CONFIG="serverName=!heReYourServerInStormMapping!"';
And enjoy))
proof
servers
tmp source code changes
Checkout new fixed version here - https://github.com/ruslan-pelepets/PhpOnWindows
Fixed path trasnlation, no need anymore in PHP_IDE_CONFIG env param)) Follow old readme for IDE setup.
When I try to add the php.cmd as a new CLI Interpretor in PHPStorm the "Checking PHP Installation" window opens and does not finish at all. If I click the "Cancel" button, the window will close and all the fields will be filled. But "Open php.ini in Editor" give me an error. Please see screenshorts. As a result, xdubug don't work. Could you help me?