Page 1 of 1

What PHP debugger for XAMPP?

PostPosted: 28. September 2009 07:58
by OrcaSoul
I'm a newbe PHP/MySQL coder, & I desperately need a PHP debugger for XAMPP that meets 4 criteria:

1: Free
2: Easy to install
3: Easy to configure
4: Easy to use

Any suggestions? :?:

Re: What PHP debugger for XAMPP?

PostPosted: 28. September 2009 21:07
by Sal
hi, the debugger is already included with the xampp package and its xdebug. You can find it's dll in the php/ext directory.
All you have to do is include these lines at the bottom of your actual php.ini:

[XDebug]
xdebug.remote_port = 9000
xdebug.remote_host = 127.0.0.1
xdebug.remote_enable = 1
zend_extension_ts = .\php\ext\php_xdebug.dll

and remember to mark all lines under the [Zend] section with ;

Then, download netbeans for PHP and start working on php as God intended :-)

P.S.
if you're using a previous version of xampp 1.7.2, the php.ini is in the xampp/apache/bin dir.

Re: What PHP debugger for XAMPP?

PostPosted: 26. November 2009 08:18
by OrcaSoul
Sal, sorry for the delay in responding - for some reason I was not notified of your reply. :(

I'll read through this and install the NetBeans as well - it looks like it will do what I need. :D

Thanks!

Re: What PHP debugger for XAMPP?

PostPosted: 27. November 2009 11:07
by tpk
I have xamp 1.7.2 and there it works only when I use:

zend_extension = .\php\ext\php_xdebug.dll

instead of

zend_extension_ts = .\php\ext\php_xdebug.dll

Re: What PHP debugger for XAMPP?

PostPosted: 27. November 2009 12:34
by Wiedmann
I have xamp 1.7.2 and there it works only when I use:

zend_extension = .\php\ext\php_xdebug.dll

Maybe that's the reason, there is already an entry with:
Code: Select all
;zend_extension = "\xampp\php\ext\php_xdebug.dll"

in the INI. Just uncomment this.

(BTW: Not really working on Vista and XAMPP 1.7.2)

Re: What PHP debugger for XAMPP?

PostPosted: 30. November 2009 06:57
by OrcaSoul
OK, I made the changes to the php.ini file:
[XDebug]
xdebug.remote_port = 9000
xdebug.remote_host = 127.0.0.1
xdebug.remote_enable = 1
zend_extension = c:\xampp\php\ext\php_xdebug.dll

I don't see a [Zend] section.

When I run localhost/MYphpinfo.php/, I see:
Debug Build no
Thread Safety enabled

Which, from page 5 of the PDF @ http://www.eclipse.org/pdt/documents/XDebugGuide.pdf, I gather means it's good to go.

One problem - I'm probably just not seeing it - how do I use this with my project? The PDF has some screen shots, but I don't see how I should start this thing... :oops:

Is this supposed to start when I run the script, or do I somehow initiate the XDEBug and run the script from there? :?

Re: What PHP debugger for XAMPP?

PostPosted: 25. January 2010 16:05
by clod
I use free PHP IDE Codelobster PHP Edition with its own PHP debugger.
I have found XAMPP settings for it on their forum.