How to debug PHP with netbeans and Xdebug

47,227

Solution 1

I have since found that WAMP, when installed with Mod_rewrite and cURL cannot cope with Xdebug.

It is a known error and crashes everytime.

http://phphints.wordpress.com/2008/10/24/wampserver-phpini-settings-for-use-with-xdebugdll-pear-and-silverstripe-cms-framework/

Unfortunately, I am using these 2 libraries too.

Solution 2

It's important to add this line in the php.ini:

xdebug.idekey="netbeans-xdebug"

Note: In NetBeans go to Settings and look where the xdebug stuff is set up. Look for that Session ID. In my case it was netbeans-xdebug.

Solution 3

hm, for me, the netbeans was the first ide that php debugging was working out of the box.

Does the xdebug show in phpinfo? if it does it should work with default settings. the only one that is needed is:

xdebug.remote_enable=on

So if this isn't enabled put it in your php.ini file, restart apache, and debugging should work.

If not, you will have to supply more info for me to help you.

sy

Solution 4

It's not a know problem that xdebug gives issues with curl or mod_rewrite. The only issues I am aware of is with Xdebug on Vista.

Solution 5

You can see here: http://ruilima.com/2010/11/ambiente_de_desenvolvimento_php_netbeans_xdebug/ is in Portuguese, but there is a pre configured virtual machine with Ubuntu 10.10, netbeans, php, mysql, xdebug, ready to use. take a look

Share:
47,227
Jon Winstanley
Author by

Jon Winstanley

Web Developer Web developer, London I am the developer behind the popular domain expiry reminder service Skinny Domain PHP, Symfony, Laravel Javascript, React, React Native, jQuery HTML5 & CSS3 MySQL, MariaDB, Postgres

Updated on February 28, 2020

Comments