Remote debugging in PHP
Posted: Wed Oct 21, 2009 10:59 am
Hi,
I need help from you guys if any one of you knows about setting up the remote debugger for PHP.
I am trying with Xdebugger, which is freeware but I couldn't succeed in configuring the same in eclipse.
Here is my Development Environment details
I am running PHP stack on Linux virtual box.
1. apache 2.2.1
2. Mysql 5.0
3. PHP 4.3.9
Now I configured samba on my linux box and mounted the /data (which contains all the PHP source code) folder on my windows PC. I configured the same folder in my Eclipse PDT project.
Please note that Eclipse is running on my windows machine.
Before running the debugger in eclipse, I did installed Xdebugger in my linux box and did necessary changes in my PHP.ini file. Here is the out put of php -v command
[root@travelodge 4_3_x_comp]# php -v
PHP 4.3.9 (cgi) (built: Jul 16 2008 16:44:47)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Now I am trying to run the index.php file from the eclipse in debug mode, but the site is not getting launched. I did all the required changes in Eclipse also.
Please let me know if any one of you knows the resolution for this.
Thanks & Regards,
Ajaykumar Musku.
I need help from you guys if any one of you knows about setting up the remote debugger for PHP.
I am trying with Xdebugger, which is freeware but I couldn't succeed in configuring the same in eclipse.
Here is my Development Environment details
I am running PHP stack on Linux virtual box.
1. apache 2.2.1
2. Mysql 5.0
3. PHP 4.3.9
Now I configured samba on my linux box and mounted the /data (which contains all the PHP source code) folder on my windows PC. I configured the same folder in my Eclipse PDT project.
Please note that Eclipse is running on my windows machine.
Before running the debugger in eclipse, I did installed Xdebugger in my linux box and did necessary changes in my PHP.ini file. Here is the out put of php -v command
[root@travelodge 4_3_x_comp]# php -v
PHP 4.3.9 (cgi) (built: Jul 16 2008 16:44:47)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Now I am trying to run the index.php file from the eclipse in debug mode, but the site is not getting launched. I did all the required changes in Eclipse also.
Please let me know if any one of you knows the resolution for this.
Thanks & Regards,
Ajaykumar Musku.