While I am debugging PHP Script in Eclipse, it doesn’t load mysql extension

after struggling with this issue for several hours today, I decided to manually cat all informations inside one single .ini file, and started eclipse with eclipse -clean. something like the following script should do the trick: #!/bin/bash mkdir /etc/php5/cli_eclipse cat /etc/php5/cli/php.ini /etc/php5/conf.d/* > /etc/php5/cli_eclipse/php.ini (you could obviously check if the dir is already existing etc. … Read more

Xdebug ignores breakpoints

It looks like there is something wrong with the path to the file containing the breakpoint. <- breakpoint_set -i 452 -t line -s enabled -f file:///http:/development.xxx.de/users/itsame/index.php -n 15 -> I’ve had a similar problem with Eclipse. Only my breakpoints in the index file were accepted and breakpoints in other files—that were included in the index—were … Read more

Xdebug for remote server not connecting

The server running PHP (and XDebug) needs to be able to connect to your workstation/desktop. So you’ll need the server set up accordingly by either telling it to connect to a specific IP-address (xdebug.remote_host) or to automatically “connect back” (xdebug.remote_connect_back). The latter has some security implications, though. These are outlined in the manual.

PHPStorm + XDebug Setup Walkthrough

I’ve found a more modern and easier solution partially based on CrasyCoder’s post. The steps you need to do are the following: If your brand new php installation doesn’t contain php.ini, rename the php.ini-development to php.ini Install xdebug with help of the wizard: http://xdebug.org/wizard.php Follow its recommendations literally. Put in your php.ini the string: xdebug.remote_enable=1 … Read more

mysqli + xdebug breakpoint after closing statement result in many warnings

There are some similar issues reported http://bugs.xdebug.org/view.php?id=900 https://bugs.php.net/bug.php?id=60778 One way to get rid of this messages is to add unset($stmt); after closing the statement and before the breakpoint. If this does not help, you should also add unset($connection); after closing the connection as mentioned by @Martin in the comments. This does not solve the problem … Read more

PHP on Windows with XAMPP running 100 times too slow

I found the problem was Xdebug in xampp\php\php.ini. Here’re the results of trying many solutions found around the web: Run XAMPP as adminisrator and restart server: 3617 ms In xampp/apache/conf/httpd.conf, replace localhost with 127.0.0.1 and restart server: 3639 ms In Windows/System32/drivers/etc/hosts, add “127.0.0.1 127.0.0.1” & “127.0.0.1 localhost” and restart Windows: 3960 ms In Windows/System32/drivers/etc/hosts, un-comment … Read more