Hello,
1)
I have the project which is installed under vagrant machine.
I have Ubuntu 14.04 on this vagrant installation.
My project uses PHP 7.1.9
I have installed xdebug running
sudo apt-get install php-xdebug
Then I have added such settings into /etc/php/7.1/mods-available/xdebug.ini ( I am using nginx, that is why my PHP is running using FPM)
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9008
xdebug.remote_autostart = 1
xdebug.remote_handler = dbgp
xdebug.idekey = XDEBUG_SESSION_START
xdebug.remote_connect_back = On
xdebug.remote_mode = req
xdebug.remote_log = "/home/vagrant/sites/xdebug.log"
xdebug.default_enable=1
xdebug.remote_connect_back=1
2) I am using phpStorm, and I have set xdebug port as: 9008 (like in my xdebug.ini)
http://dl4.joxi.net/drive/2017/09/20/0024/2304/1575168/68/ba849755c8.jpg
3) I have made all neccesary settings in my phpStorm
http://dl3.joxi.net/drive/2017/09/20/0024/2304/1575168/68/c676d73d43.jpg
4) I have added the path to php (inside vagrant installation ) /usr/bin/php7.1
http://dl4.joxi.net/drive/2017/09/20/0024/2304/1575168/68/b14e60979a.jpg
5) Then I have put the breakpoint on the first line of my php script
http://dl4.joxi.net/drive/2017/09/20/0024/2304/1575168/68/4f578c317d.jpg
6) Then I press 'Debug' button in phpStorm ( look prev screenshot )
7) In my Chrome the page has been started to load
http://dl3.joxi.net/drive/2017/09/20/0024/2304/1575168/68/cb8a8f686e.jpg
8) I see that server is waiting, and that is why Chrome does not show anything.
It looks like xdebug is working, BUT phpStorm does not stop on my breakpoint.
This is the problem which I can't solve yet.
9) If I press 'Stop' button in phpStorm and reload the page which I try to debug --
It loads quickly without any delays:
http://dl4.joxi.net/drive/2017/09/20/0024/2304/1575168/68/93a4c48bc0.jpg
Pls, help me or give me some advice, how can I fix it?
Thank You.
19.09.2017, 19:52, "Derick Rethans" <derick[@]xdebug.org>:
> On Tue, 19 Sep 2017, castor_troy[@]tut.by wrote:
>
>> Can You help me?
>> I want to know if xDebug is available for PHP 7.1.9 ?
>
> It's certainly available.
>
>> I have tried to use it under vagrant environment.
>> I have Ubuntu 14.04.1 and PHP7.1.9 on it.
>>
>> Can you help me to Identify if the problem is with my PHP version?
>
> I can't help, as you have not mentioned what you have tried, what
> happened, and which errors you received.
>
> In general, just following this, should work:
> https://xdebug.org/wizard.php
>
> cheers,
> Derick
> --
> Like Xdebug? Consider a donation: https://xdebug.org/donate.php
> Xdebug | https://xdebug.org | xdebug-general@lists.xdebug.org
> twitter: @derickr and @xdebug
Received on Wed Sep 20 2017 - 08:30:54 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST