[xdebug-general] Re: Is xDebug available for PHP 7.1.9 ?

From: Spencer Williams <enderandpeter[@]yahoo.com>
Date: Wed, 20 Sep 2017 07:55:50 -0600

On 9/20/2017 1:23 AM, castor_troy[@]tut.by wrote:
> 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

Thanks a lot for all the info and the very useful screenshots. Okay, it
looks like you have things setup right. I'd like to confirm that when
you say php --version, it reports the presence of Xdebug. Also, do a php
-i | grep xdebug to make sure it's picking up on the config.

It's great you're using PHPStorm because they have a nice feature for
helping you confirm very positively that everything is going to work.
Take a look at my guide at
https://aninternetpresence.net/dev-guides/amp/xdebug/. Make sure you go
to /Run -> Web Server Debug Validation/ and confirm everything is indeed
filled out so that it reports that there are no issues. You should see a
dialog box verifying all your settings:
https://aninternetpresence.net/wp-content/uploads/2017/02/PHPStorm_WebsiteValidate.png

If you are seeing verification of that nature, then I hope we can narrow
the issue down to the IDE. Otherwise, something still may not be in
order on the server.

-- 
-Spencer <http://aninternetpresence.net>
-----------------
"What a lark! What a plunge!"
- Mrs. Dalloway <http://ebooks.adelaide.edu.au/w/woolf/virginia/w91md/>, 
Virginia Woolf
Received on Wed Sep 20 2017 - 14:55:53 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST