Use Xdebug with PhpStorm and WSL

37
July 12, 2018, at 01:20 AM

I use WSL (Ubuntu 16.14) from Windows 10 as a web server with PHP 7.1 fpm and Apache.

I want to use Xdebug from PhpStorm 2018 with WSL but it's not working well.

Xdebug is installed on my Ubuntu server and it works well, I see it on phpinfo() output.

Here the php.ini config for Xdebug:

[Xdebug]
zend_extension="/usr/lib/php/20170718/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM

I configured the port in php storm as 9001 too.

The problem is more on the connection between PhpStorm and WSL. I try it with the remote way. In the Run > Edit config popup, I use PHP Web Page and when I use the Validate tools, all is OK except the remote host. I set it to 127.0.0.1 and this is the point.

When I listen the debugging tools, it said : Port 9001 is busy

How can I do a link between localhost and localhost ?

READ ALSO
I have a table images and album_images. Is the album_images table unnecessary?

I have a table images and album_images. Is the album_images table unnecessary?

I've created a website where a user can upload a single image or a whole album of images and 3 views - one for displaying all single images, one for displaying all albums (just the title image of each album) and one for displaying all album_images that have album_id...

29
Can you get images from a PHP upload?

Can you get images from a PHP upload?

So I have a page containing PHP that will take multiple images, then save and display them

36
if smiliar foreach then add together Laravel 5.2

if smiliar foreach then add together Laravel 5.2

i want to add the values if they were same and similar

21
which is faster? echo “” or close php for printign HTML

which is faster? echo “” or close php for printign HTML

in my wordpress special Theme functionphp file i have alot of functions that contain some Html inside php codes

44