I've been trying to configure this for quite some time now but I can't get it running properly. Done so far:
/opt/lampp
On
in /opt/lampp/etc/php.ini
Added the following lines to the end of the ini file:
[xdebug]
zend_extension="/usr/lib/php5/20090626/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_port=9000
xdebug.remote_host="localhost"
I've made sure to restart apache, but I still don't get an xdebug-section when showing phpinfo();
I think that Eclipse is configured properly, but I can't know for sure until I get xdebug to run.
Please help, all suggestions are very welcome!
Edit:
Here is the output of phpinfo()
: http://www.pasteall.org/35930
Update:
I've downloaded Xampp 1.8.1 (I had previously xampp 1.8.0) to /opt/lampp
and added the appropriate development files. I have both compiled Xdebug myself according to the guide at http://xdebug.org/wizard.php and installed xdebug through /opt/lampp/bin/pecl
.
Now my php.ini looks like this:
zend_extension = "/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_host = "localhost"
xdebug.remote_handler = "dbgp"
I don't know what to do, http://xdebug.org/wizard.php still reports that Xdebug isn't installed. Could it be a permission issue? Currently the permissions for the extensions are as follows:
-rwxr-xr-x 1 niklas niklas 88376 Sep 30 10:43 interbase.so
-rwxr-xr-x 1 niklas niklas 184920 Sep 30 10:43 oci8.so
-rwxr-xr-x 1 niklas niklas 118592 Sep 30 10:43 pgsql.so
-rwxr-xr-x 1 niklas niklas 830886 Oct 10 15:10 xdebug.so
Should they be owned by someone else? Must I enable any additional options in php.ini? This is my current output of phpinfo()
: http://www.pasteall.org/36135
Quick Start Choose and install the browser extension suitable for your browser. On the PhpStorm toolbar, toggle. to start listening for incoming PHP debug connections, or choose Run | Start Listening for PHP Debug Connections from the main menu. Set a breakpoint in your code.
Xdebug is a powerful open source debugger and profiler for PHP. It is included with XAMPP and can be used to display stack traces, analyze code coverage and profile your PHP code.
You must configure your PHP Executable through the PHP Executables Preferences page before you can debug locally. To locally debug a PHP Script: Set breakpoints at the relevant places in the file that you would like to debug by double-clicking the vertical marker bar to the left of the editor. Save the file.
tar -xvzf xdebug-2.2.1.tgz
cd xdebug-2.2.1
Run: phpize
As part of its output it should show:
Configuring for: ... Zend Module Api No: 20100525 Zend Extension Api No: 220100525
If it does not, you are using the wrong phpize
. Please follow
this FAQ entry and skip the next step.
./configure
make
cp modules/xdebug.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525
/opt/lampp/etc/php.ini
and add the linezend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
http://xdebug.org/wizard.php
See below URL i think it is very help full to you
http://www.edmondscommerce.co.uk/ubuntu/ubuntu-xampp-xdebug-install/
http://www.webhelp2u.com/article/install-xdebug-on-lampp
https://stackoverflow.com/questions/9640912/problems-setting-up-eclipse-with-xdebug
Read it:-
Install XDebug on ( LAMPP OR XAMPP For Linux )
http://www.edmondscommerce.co.uk/ubuntu/ubuntu-xampp-xdebug-install/
http://www.webhelp2u.com/article/install-xdebug-on-lampp
To Install XDebug on LAMPP
Download the latest version of ( XAMPP For Linux ) From site http://www.apachefriends.org/en/xampp-linux.html
Install it. To install lampp, extract and put in /opt directory.
Download Development package from same site.
Extract it, copy and paste "include" folder from Development package to /opt/lampp directory. ( This package would use for compiling XDebug source )
Run command /opt/lampp/bin/pecl update-channels. this would update the pecl channels database at your local pc.
Run command /opt/lampp/bin/pecl install Xdebug. And wait for finishing the process.
Now xdebug.so file has been created in /opt/lampp/lib/php/extensions/ directory.
Now Open the file php.ini and add the line zend_extension="/opt/lampp/lib/php/extensions/path_to_xdebug.so". at the end of file.
Restart Lampp & Check enabled or not using phpinfo();
Update my answer after your comment
See below URL i think it is very help full to you.
Setup Xdebug for PHP5 in Ubuntu
http://gayanhewa.info/setup-xdebug-php5-ubuntu/
Since there is no sign of why it isn't working I've given up on xampp and just installed a regular lamp-server with xdebug through apt-get
. I disabled mysql and apache2 from starting during boot so that they are not running if I don't want them. Here is a very simple tutorial on how to enable xdebug-debugging with Eclipse: http://www.web-brainz.co.uk/Xdebug
The other answers will surely be the most fitting for other users though they unfortunately didn't fix my issue. Thank you very much for help!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With