xdebug

Remote debugging with netbeans and xdebug on windows CLI.

Hello, I hope someone can help, I'm having some difficulty using remote debugging with netbeans on the windows 7 (professional) CLI. I'll outline the process I have gone through thus far: 1) Set up php.ini: xdebug.remote_enable=On; xdebug.remote_host=localhost; xdebug.remote_port=9000; xdebug.remote_handler="dbgp"; xdebug.remote_mod...

php eclipse debuging

I am runing a php script using eclipse. when a set breakpoint and run the script it throws me this error. form the error it is apparent that i have change something the php.ini file. but i dont know what i have to change to make either zend or xdebug. even i dont know what the differnce b/w them. following the error The session could ...

Cannot display multiple output lines when using XDebug with Aptana and fwrite..

When using Aptana with PHP 5.2.3 in debug mode (using thread safe XDebug 2.1.0 for PHP 5.2 VC6) to run a simple multi-line hello world script I get some erratic behaviour on the Aptana 'Console' tab. I've a hello_world.php script that contains the following: <?php $stdout = fopen('php://stdout', 'w'); fwrite($stdout, 'Hello world!'); f...

XAMPP 1.7.3, Eclipse PDT & XDebug - Debugging a PHP web page in Eclipse never stops at breakpoints

Dear folks, My development web server is currently a XAMPP 1.7.3 on my localhost (Win XP). I just set up my Eclipse 3.6 PDT with XDebug. It works fine, if I debug a file as a "PHP script", but when it comes to debugging it as a "PHP web page", XDebug ignores the breakpoints completely. Only a manually inserted xdebug_break() inside th...

Will enabling XDebug on a production server make PHP slower ?

The title pretty much says it all...is it a bad idea ? I'd like to have the enhanced debug messages that XDebug provides on the server. [edit] Just to make things clear. I'm aware there are security risks involved. Perhaps I should complement my question and give more precise reasons why I would want to do this. Our production server h...

XDEBUG profiler results are different each time

Is this normal to get different results each time I execute my code? I've written a small piece of code and whenever I run it, I get different results. Say I call two different functions in my code, sometime's the cost of Func1 is 44%, Func2 is 25%, sometimes it's 38%, 33% respectively! What should I do to get more accurate results? ...

How to debug PHP application using Eclipse PDT (xdebug and zend debugger)

I'm working on one application. I am using Eclipse php Helios IDE for developing php application. I wanted to know below things related to this IDE, so that i can implement PHP application instantly as well as very efficiently : 1) How to do remote debugging using Eclipse PHP Helios IDE 2) What is the pros and cons of xdebug and zend...

How to use xdebug with eclipse IDE for PHP

Hi my PHP project is set up on a remote test machine. I need to debug it using eclipse IDE. How shall I progress. I came to know i should prefer Xdebug rather than zend debugger. Please clarify my doubt. ...

debugging using xdebug and cakephp in eclipse PDT

Hi I'm working on one web application. I wanted to provide interactive debugging to my web application, so i have installed xdebug on my machine( windows ) successfully. Done with all the configuration settings in php.ini file. I am able to debug normal php scripts except cakephp project. I hv used cakephp and eclipse IDE for developm...

Configuration parameter in xdebug for allowing multiple hosts on remote machine

Hi I am working on one web application. The project located on my linux box i.e. server. We are remotely accessing this machine from windows. I am using xdebug for debugging alongwith Eclipse PDT. xdebug is installed on my server. Below configuration are set in php.ini file ( which is located on server ) : xdebug.remote_enable=1 xdeb...

xDebug with specific version of PHP

Is there a specific version of xDebug I should install if I'm running PHP 5.2.10 on my Linux box? ...

PHP & Xdebug: NOT writing stack to error log?

Dearest PHP folks, is there a way to make Xdebug show the entire stack on the screen but NOT write it to the error log? I'd only like the actual error line in the log file itself, but I'd like to see the stack on the screen. ...

Tools for analyzing cachegrind files in aggregate?

Are there any tools that can analyze a folder full of xdebug dumps in aggregate? When we enabled Xdebug profiling on our production server for short periods of time, we always end up with hundreds of files, that takes a lot of time to analyze individually in WinCacheGrind or KCacheGrind. I am looking for a tool that can be used in aggre...

xdebug+pdt on localhost; xdebug is not working as "php web page", but works as "php script"; why?

Hello, I've set php executables to /opt/lampp/bin/php; when I'm starting to debug index.php as "php script" - everything is ok. But when I'm trying to debug as "php web page" nothing happens... Here is my xDebug configuration xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug...

How did you organize your debug perspective in eclipse?

Hello, How did you organize your debug perspective in eclipse/netbeans? What views are more important for debugging and what views are less important for you; why? (screenshots are appreciated). PS:Is it possible to put PHP perspective to the right monitor and Debug perspective to the left monitor? Thank you. ...

Interpreting results of profiled php code

I finally got xdebug set up and running and I'm using webgrind to understand the data. Can someone explain how to understand the data? There's just a bunch of terms that I'm not sure of, like: Invocation Count, Total Self Cost, Total Inclusive Cost. I also don't understand what changing the "show percentage" does. (It defaults to 90%). ...

PHP script stops without error message (Which error type?)

Hello a PHP script stops without an error message, if I change the signature of a method of a class, which implements a intereface, e.g.: interface A { public function somefunction(); } class B implements A { public function somefunction(XY $xy); { ... } } This is an error of course, but there is no error message shown....

Making PHP performance profiling predictable

I'm using xdebug with PHP to do some performance profiling. But when I run the same script more than once, I often get very different times. So it's hard to know how much faith to put in the results. Obviously there's a lot happening on a machine that can affect PHP's performance. But is there anything I can do to reduce the number of v...

No xdebug in phpinfo()

I have added following lines into php.ini [XDebug] zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 Version of php_xdebug-2.1.0-5.3-vc9.dll is obtained via page http://www.xdebug.org/find-binary.php. But there are...

How can you use php xdebug if you are on NAT behind a firewall?

I have the following use case for debugging a PHP application: The developer does have a private IP address The developer can connect only to a limited number of ports from the server, like 80, 8080, 3128, others being limited by the outgoing firewall. Still if the outgoing requests are HTTP he could use a proxy that does not have thi...