xdebug

How do I set up PHP profiling on Eclipse?

I have set up Eclipse PDT on Galileo. I'm able to run and debug PHP sites that are set up on XAMPP. The thing is, I want to profile one of the sites, but cannot for the life of me figure out how to set this up. There is a profiling menu when I right-click the PHP project, but no indication of how to proceed from there. BTW I'm using Xdeb...

Uncaught exception while using xdebug

I'm not too great with xdebug so forgive me if this is a stupid question. But I installed it on a separate machine and it performed some magic for me like formating my var_dump() output and catching any uncaught exceptions. It also fails to format the stack traces, outputting plain text which is extremely hard to read. As I am learning ...

Xdebug and a few remote_hosts

Hello ! I've got an apache server and I configured on it Xdebug. I set as xdebug.remote_host my IP address so it looks like: xdebug.remote_host=192.168.0.101 But I would like other computers also would be able to use Xdebug - how to set a few IP addresses from LAN ? ...

xdebug for PHP 5.2 on Windows 7 64bit

Hi all, Previous posters have linked to http://fusionxlan.com/PHPx64.php to install 64-bit capable versions of xdebug. I need PHP 5.2 compatibility for Magento, and fusionxlan has disappeared and archive.org doesn't have a copy. Does anyone have a copy of the fusionxlan download or dll that they can share? Thanks, JD ...

Codeigniter ignoring query strings. Only loading index page.

I have setup remote debugging in netbeans. It works except codeigniter only loads the default controller (home page). I have enabled query strings with $config['enable_query_strings'] = TRUE; The debugger opens up a page with the following url http://blinkfilms.ben.dev/myid/tests?XDEBUG_SESSION_START=netbeans-xdebug So codeignite...

best place to put xdebug_time_index() to measure page executing time when using ZF

I'm trying to figure out the best place to put xdebug's excellent xdebug_time_index() function so that I get the best indication of page execution times when using a Zend Framework application structure. I was thinking of putting it in post dispatch hook in my controller (all my controllers inherit from a base controller class) but I've...

How to correctly configure xdebug.file_link_format ?

I want error messages outputed by xdebug to show up as links in the browser so I can open them quickly using TextMate. I added the following line to my php.ini file, restarted apache and added a few syntax errors to one of my php scripts but the file name is not showing up as a link. Xdebug is otherwise working fine on my system. xdebu...

PHP header redirection not working after installing xdebug

<?php $url = 'http://google.com/'; header('Location: ' . $url); The xdebug setting in php.ini is: zend_extension=path_to_xdebug.dll xdebug.remote_enable=1 xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_handler=dbgp The above header() redirection will work as long as I remove the xdebug setting. Anyone met this p...

Breakpoint doesn't work if I press Resume when debugging osCommerce with xdebug in pdt?

Is this another bug of xdebug? I've already installed the latest version of xdebug for PHP 5.3 yesterday. Introduction of osCommerce is here. Here is the problem description: When I press Resume,the page is directly shown,though there are breakpoints there. Anyone met this problem? ...

NetBeans, XDebug and CodeIgniter - how?

Does anybody have any (actually working) solution for this? My config is: $config['uri_protocol'] = "PATH_INFO"; $config['permitted_uri_chars'] = ''; $config['enable_query_strings'] = TRUE; ...

netbeans 6.8 php, xdebug, mamp - cannot establish a connection

I'm having no luck whatsoever with debuggers either on Zend Studio or NetBeans. I cannot believe the difficulty I'm having with these IDE's. I've read all the prior questions on netbeans-xdebug problems. According to those answers, my configuration is correct. Nonetheless, when I try to run xdebug, NetBeans hangs. I cancel the connection...

Disabling Xdebug's dumping of caught exceptions

By default Xdebug will dump any exception regardless of whether it is caught or not: try { throw new Exception(); } catch (Exception $e) { } echo 'life goes on'; With XDebug enabled and the default settings this piece of code will actually output something like the following (nicely formatted): ( ! ) Exception: in /test.php on li...

PHP ZF: I can't debug my IndexController.php actions code

Hi I'm new to php and I'm using xampp, eclipse pdt, xdebug. I've set xdebug so that I can debug my site on apache but when I click 'debug as web page' in the eclipse ide only the breakpoint in the public/index.php and in the views get hit. If I put a breakpoin here public function indexAction() { // action body $this->view->s ...

xDebug : Output traces in php script?

Hi! I have tried to use xDebug on my local Ubuntu environment to speed up development and it's a great asset. However, I would like to see the output of the Trace function directly in the browser, at the end of the script. How can this be done? ...

Wamp server and xdebug installation

I am trying to install xdebug on wamp server. With this code: zend_extension_ts="c:/wamp/bin/php/php5.3.0/ext/php_xdebug-2.1.0RC1-5.3-vc9.dll" xdebug.default_enable = on xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_host = localhost And apache error log: PHP Warning: PHP Startup: Unable to load dynamic librar...

Debugging php-cli scripts with xdebug and netbeans?

I have managed to initiate php-cli script debug session from the IDE itself, but I need to start the debugging session from the shell / command line. These are rather complex maintenance PHP scripts which take a lot of input parameters, so entering arguments from within Netbeans is a bit cumbersome. I have done it before with Zend studi...

Netbeans + Xdebug + php not working

My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then has never worked, someone had this problem? The version of my netbeans is 6.8 and the version of php is 2.5.2. my php.ini: zend_extension_ts = d:\wamp\bin\php\php5.2...

Netbeans xdebug nightmare

I know what you're thinking, ANOTHER netbeans xdebug post? Well, I've tried everything I've seen in other posts, and nothing seems to work. Here's my setup: OS: Ubuntu 9.10 PHP: 5.2.1 Netbeans: 6.8 The following is in my /etc/php5/apache2/php.ini zend_extension=/usr/lib/php5/20060613/xdebug.so xdebug.remote_enable=1 xdebug.remote_...

xdebug profiler output strange results

I'm using xdebug to profile some PHP code on Windows and using WinCacheGrind/Webgrind to analyse the output, but I'm getting some strange results. Specifically, the total cumulative time for a single method is greater than 100%! How is it possible that more time is spent executing this function's code and all the functions that it calls ...

Simplest way do get started debugging PHP (Drupal)

What is the simplest way to get started with debugging and hit a specific line in a Drupal install? Generally? With Eclipse? (how difficult?) On Windows, knowing and having access to Visual Studio (How Difficult with Visual Studio?) (No Pay: Free or trial) Locally on Windows I am using the Acquia Drupal WAMP-stack. On the server Ub...