Skip to content
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

xDebug #36

Open
JohnFF opened this issue Jun 23, 2018 · 0 comments
Open

xDebug #36

JohnFF opened this issue Jun 23, 2018 · 0 comments

Comments

@JohnFF
Copy link
Contributor

JohnFF commented Jun 23, 2018

It'd also be neat if the Vagrant came with xDebug installed.

I haven't been able to get xDebug working with netbeans (or insert your fave IDE here) for CLI php (including phpunit) but I have for running it through the browser, as follows. Please could a maintainer look at how to make it work for the CLI?

Find location of xdebug.so. Mine was in /usr/lib/php5/20121212/xdebug.so

In vagrant@civi:/etc/php5/apache2/php.ini, at bottom:

zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=10.0.2.2
xdebug.remote_port=9001
xdebug.remote_connect_back = 1
xdebug.max_nesting_level = 200

If that can't be added to the Vagrant box in some way (I wasn't able to figure out how), perhaps it could be added to the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant