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

Add XDebug Part for PHP Debugging #121

Open
taras opened this issue May 11, 2014 · 1 comment
Open

Add XDebug Part for PHP Debugging #121

taras opened this issue May 11, 2014 · 1 comment

Comments

@taras
Copy link

taras commented May 11, 2014

I would like to use Nitrous as a replacement to my local LAMP stack for PHP development. To do this, I need to be able to use XDebug. Is this possible?

@amsross
Copy link

amsross commented May 23, 2014

I see they added it in codio: codio#67

In Nitrous, you can currently install xdebug by running:

# pecl install xdebug

Then, you need to add the extension to your php.ini:

zend_extension=xdebug.so

Then, if you were trying to use it with phpunit for example, you can tell phpunit to use your php.ini file:

# php -c /home/action/.parts/etc/php5/php.ini' `which phpunit` --coverage-html=web/cov -c app

You can ease the use of these by putting them in your .bashrc or .bash_profile:

alias php='php -c /home/action/.parts/etc/php5/php.ini'
alias phpunit='php `which phpunit`'

Then it's just

# phpunit --coverage-html=web/cov -c app

Bam!

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

2 participants