xdebug

PHP: Profiling code and strict environment ~ Improving my coding

I would like to update my local working environment to be stricter in an effort to improve my code. I know that my code is okay, but as with most things there is always room for improvement. I use XAMPP on my local machine, for simplicities sake Apache Friends XAMPP (Basic Package) version 1.7.2 So I've updated my php.ini : error_report...

xdebug in netbeans won't bind to port 9000

I've been trying to configure xdebug to work along with netbeans, my current configuration is [xdebug] zend_extension="C:\binaries\php\ext\php_xdebug-2.1.0RC1-5.3-vc6.dll" xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=127.0.0.1 (also tried localhost) xdebug.remote_port=9000 xdebug.idekey="netbeans-xdebug" I ...

XDebug not working with xampp

I'm using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It comes bundled with Apache 2.2.12, PHP 5.3.0, XDebug 2.0.5 and Zend (not sure on version) This is a totally fresh install of XAMPP, the only thing I've added to php.ini (at xampp/php/php.ini) is: zend_extension_ts = "C:\xampp\php\extensions\php_xdebug.dll" [xdeb...

How to make PHP set HTTP status code to 500 automatically in case of any error condition? (including those that cannot be handled by user)

Hi all. I am running Apache 2.2.15 with PHP 5.3.2, 'display_errors' disabled, 'display_startup_errors' disabled, 'log_errors' enabled. At my setup (so I consider it a norm), PHP aborts on fatal errors, which is good, and sets HTTP status code to 500. Fatal errors include E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR and...

native functions overweight in xdebug profiler output

hi i have a problem with xdebug on a FreeBSD server. on that server xdebug profiler's cachegrind files say that executing time of native functions (such as DOMDocument::load() or XSLTStylesheet::importStylesheet) is about 50% of total script execution time. and with profiler turned off those functions work for less than 0.1% on my own ...

Problems loading xdebug in wampserver2.0

I have an issue loading xdebug in apache server. Here are my settings: Apache 2.2.11 MySQL 5.1.36 PHP 5.2.0 Windows 7 Wampserver 2.0 php -i and php -m show that the xdebug module php_xdebug-2.1.0RC1-5.2-vc6.dll is installed. However phpinfo() does not show that xdebug is installed. I have tried starting apache as a service, throu...

Using netbeans, xdebug, symfony and phpunit together...

Hi all, I installed xdebug on my Apache and if I define a breakpoint in Netbeans, the execution breaks fine. But if I execute the tests with symfony phpunit:test-all, the execution will not break on the given break point. Any ideas? cowabunga! ...

xdebug not loading. not found in phpinfo() after apache restart

Hi folks, I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this...

Values not showing up during debugging in eclipse PDT

I am trying to debug this simplepie.inc (called from index.php )which is dumping me with error during parsing one of the feed. After stepping through the line $utf8_data = 'UTF-8'; which I hardcoded in to test things out, the value of the variable remains <Uninitialized> as shown in the screenshot below. Why is that so? Variables and...

Xdebug successfully connects to DBGP clients, but won't stop at breakpoints

I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect to multiple DBGP clients (i.e. the xdebug.remote_log shows communication back and forth, and the clients themselves also show the incoming connection), but it doesn't stop at breakpoints. I have tried NetBeans, MacGDBp and also the command-line debugc...

Does xdebug work with CodeIgnitor (after adding URI routing rules)?

I had xdebug/Netbeans and CodeIgnitor 1.7.2 working. After I added some new routes (in the "routes.php" config file), my app still works fine. But now xdebug crashes in the CI_router class. _set_routing() method is called. _parse_routes() is called. _set_request() is called _validate_request() is then called and produces a 404 messa...

Tools/Techniques for Debugging Memory Leaks/Usage Bugs in PHP

I've got a command line script that is running an array() of files through a loop, and using the file name as an argument to call a method on a helper object. Each run through the script, PHP's memory_get_usage reports a larger and larger number 53294264 57019624 61374624 65699176 70230600 75157152 79900392 84630472 89359264 94300016 1...

How to configure eclipse pdt and lamp server on Ubunto 10.04?

Hello everyone, this is a basich question about properly setting up the lamp server to work with eclipse and xdebugger. I have lamp server installed and working properly. I have eclipse pdt as described here Eclipse plugin PPA for Ubuntu by Yogarine and it is properly installed. I have installed xdebugger and configure the xdebug.ini fil...

Xdebug ignores breakpoints

Hey guys, i am currently trying to get xdebug to work on our development server. As client i am using netbeans and the connection so far works without problems. But when i try to set a breakpoint within netbeans it is just getting ignored. And yeah, i already googled for hours and also found some questions here that perfectly fit my d...

Code coverage fails with PHPUnit and the Zend Framework

Hi I have some issues with code coverage reports in PHPunit and the zend framework. Whenever I run a phpunit test the code coverage fails returning the following message: PHPUnit 3.4.15 by Sebastian Bergmann. I.......III.I................................IIIIIIIIIIIIIII 60 / 93 IIII....I....I..II..II.....IIIIII Time: 4 seconds, Memo...

Wordpress xdebug profiling

Hello, I used Xampp 1.7.3 and (mod) xdebug to profile the latest Wordpress 3.0.1 release on a Windows 7 machine. The average loadtime during tests was arround 835 milliseconds calling 697 functions and performing 15 mysql queries. I used the default theme twentyten. Now my question: Can someone validate my results or is my local setu...

How to use xdebug more then backtracking an error ?

i'm using xdebug. but have no knowledge to extend its usability. I'm still using it for backtracing error only. Is there any use of xdebug ? or how do you personally use xdebug ? ...

XDebug profiling in PHP - can't get output

Hello everybody, I've got a strange issue. I've setup XDebug to profile a PHP application we're working on. I believe everything is setup correctly but I get no output when I run it. My configuration looks like this: zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so [XDebug] xdebug.profiler_append = 1...

Eclipse RSE and xdebug - will this work?

I have a remote server connected over SSH using the RSE plugin in Eclipse Galileo. Is there anyway to "map" it to a PHP Debug session in Eclipse? (Xdebug is installed and working) I have heard that another solution is SSHFS but this might be tricky as I'm on WinXP and would prefer a 'generic' Eclipse solution. ...

Xdebug loaded correctly in Ubuntu but var_dump/error handling not being over-ridden

I have recently upgraded to Ubuntu 10.04 and as usual installed xdebug from the package manager. I've never had a problem after that with getting the formatted error messages and var_dumps to show up but this time they don't. I ran phpinfo() and it is definitely loading it, and I even tried running some of the custom xdebug functions an...