New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xDebug to the box #90

Closed
jpjoao opened this Issue Jul 28, 2015 · 11 comments

Comments

Projects
None yet
4 participants
@jpjoao

jpjoao commented Jul 28, 2015

Why not add xDebug (with remote access enabled) to make it the state of the art dev box?

@whatnickcodes

This comment has been minimized.

Member

whatnickcodes commented Jul 29, 2015

@EdEichman

This comment has been minimized.

EdEichman commented Jul 29, 2015

Hi jpjoao,

FYI, I had problems with xdebug and PHPStorm. I wrote a blog post about my solution in case anyone else has the same problem.

Thanks,
Ed Eichman
Cambrils, Spain

@whatnickcodes

This comment has been minimized.

Member

whatnickcodes commented Jul 29, 2015

Awesome share. I'm going to add this to the docs.

@whatnickcodes whatnickcodes reopened this Jul 29, 2015

@whatnickcodes

This comment has been minimized.

Member

whatnickcodes commented Jul 29, 2015

Reopening this until I do

@jpjoao

This comment has been minimized.

jpjoao commented Jul 29, 2015

@EdEichman I made it work by adding only this to /etc/php5/apache2/php.ini file:

zend_extension="/usr/lib/php5/20131226/xdebug.so"
xdebug.remote_enable = on
xdebug.remote_connect_back = on

No need for the specifics IP and port as you did. Looks simpler to me, don't you think?

@EdEichman

This comment has been minimized.

EdEichman commented Jul 29, 2015

@jpjoao Using PHPStorm? And "Validate Debugger Configuration on Web Server" did not give a "Remote host is configured as 'localhost' despite server host is probably not local" warning?

xdebug.remote_port does look redundant... I'll remove that from my post, thanks!

@jpjoao

This comment has been minimized.

jpjoao commented Jul 29, 2015

I am currently debugging with the configuration I posted. I do have a hostname configured and that can be what made it work without the IP thing. Give it a try. (btw I am using PHPStorm 9)

@EdEichman

This comment has been minimized.

EdEichman commented Jul 29, 2015

@jpjoao I also have a hostname configured (I assume you are talking about adding an entry to the host file on windows) and am using PHPStorm 9. But only got rid of the warning with the xdebug.remote_port setting. NOTE: It was only a warning, but I like to clean warnings - I assume it would work without remote_port set.

@jpjoao

This comment has been minimized.

jpjoao commented Jul 29, 2015

I am not getting any warning whatsoever... But if in some configurations you do get them I'd recommend to have in the docs all lines.

Cheers

@whatnickcodes

This comment has been minimized.

Member

whatnickcodes commented Aug 2, 2015

@EdEichman Added a link back to your post in the 2.0 blog post. Thanks

@iurimattos

This comment has been minimized.

iurimattos commented May 28, 2018

enter ssh session and install this package "sudo apt-get install php-xdebug"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment