xdebug

XAMPP: I edited PHP.ini, and now Apache crashes

I'm trying to set up XDebug for PHP. I edited some settings in my apache\bin\php.ini file, and now Apache crashes every couple page requests. (I wish I had saved a copy of php.ini before editing it. der.) I was following instructions here: http://robsnotebook.com/php%5Fdebugger%5Fpdt%5Fxdebug Here is the only section I changed. Does an...

how to determine which PHP code opens MySQL connections that aren't getting closed

We have an application that is comprised of a couple of off the shelf PHP applications (ExpressionEngine and XCart) as well as our own custom code. I did not do the actual analysis so I don't know precisely how it was determined, but am not surprised to hear that too many MySQL connections are being left unclosed (I am not surprised bec...

Ubuntu: Configuring Xdebug (PHP) for Eclipse 3.2

Hi, I have installed Eclipse 3.2 in my ubuntu system. I have added the php plugin to eclipse by following steps Help > Software Updates > Find and Install.. > selected "Search for new features to install" and clicked "NEXT" > clicked "New Remote Site" > Gave name = "PHP" and url = "http://update.phpeclipse.net/update/nightly" > Cli...

Problems with first steps of debugger installation - IIS, Vista, PHP5, XDebug

I'm trying to get a PHP debugger working and currently keep failing at the very first hurdle. I have a clean installation of IIS7 running on Vista with PHP 5.2.11. The XDebug section of my PHP.ini looks like: [XDEBUG] zend_extension_ts="E:\Program Files\PHP\ext\php_xdebug-2.0.5-5.2.dll" xdebug.remote_enable=true xdebug.remote_host=127....

What's the Difference Between Extension and zend_extension in php.ini?

When I installed Xdebug through pecl, it added the following line to my php.ini file. extension="xdebug.so" and everything I used worked. Until today. Today I was having trouble setting up Xdebug for interactive debugging. I couldn't get anythign working until I changed the above to zend_extension="/usr/local/lib/php/extensions/xd...

Interactive Debugging and Breakpoints with Xdebug and the Zend Framework

I'm trying to get interactive debugging working with a Zend Framework application and Xdebug, using MacGDPp as the client debugger. I'm running to some problems setting breakpoints and was hoping Someone could solve my specific problem Someone could give me a high level overview of how this is supposed to work so I can track down the ...

Debug PHP and Control Flow?

I am an autodidact so dont know much about conventional web development however, I have wrote a complete social networking website yet I dont know how to debug. My website has some problems and I need to learn debuggin things around/ First of all I need instructions how to install Xdebug on WAMP (since I use phpDesigner). I tried a lot ...

How do I examine defined constants in PHP?

I'm stepping through the source code of CodeIgniter with Xdebug in NetBeans and I'm looking for a way to see defined constants as they are defined. If it's not possible, are there any other ways to display all defined constants? ...

Xdebug configuration with PHP fastcgi and eclipse?

I have been using eclipse-pdt in conjunction with xdebug and apache without problems, for over one year. Things worked flawlessly and I could do all the interactive debugging I wanted from within eclipse (using my own machine as a server). Now I switched from apache to nginx (and therefore PHP runs now not as an Apache service but as fa...

Mac eclipse xdebug firefox issue

I have worked with eclipse, firefox, and xdebug for months now on a linux-ubuntu machine. recently i moved to a mac 10.6 and set up all these programs and they all work fine until I try to run xdebug using firefox as the default browser in eclipse. It will work, but the browser must be close other wise it will prompt a message saying C...

XDebugging PHPUnit testcases in Eclipse PDT

Until now, I was debugging my PHP scripts and testcases using vim and the appropiate script with python backing it. However, me and my colleagues need to move forward and vim/gvim is not an option for them. So I've tried to integrate debugging PHPUnit in Eclipse on my setup as an external tool, which again, works with vim. However, it s...

Can't get Xdebug to work on Windows 7

I installed the latest XAMPP package which includes PHP 5.3.0. I am trying to enable Xdebug, but it just won't work. Here's what I changed in the php.ini shipped with XAMPP: ; uncommented zend_extension = "X:\xampp\php\ext\php_xdebug.dll" ; added the following lines: xdebug.remote_enable=true xdebug.remote_host=localhost xdebug.remote...

Where can I download Xdebug for PHP and Mac OS X?

I went to the xdebug site, but I can't find a mac download. http://www.xdebug.org/download.php Did I miss something? NetBeans tells me to get xdebug for setting up an PHP development environment on the mac. ...

Why does xdebug not establish connection with NetBeans?

I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest MAMP package installed on my mac. My php.ini looks like this: [xdebug] ;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xde...

How can I debug a PHP CLI script with xdebug?

I haven't quite figured this out. EVERY piece of documentation I've found covers how to use xdebug to debug scripts running in Apache. I need to debug a php CLI script. So, for instance, how do I pass the XDEBUG_SESSION_START variable in to get xdebug to kick on? I'm specifically trying to debug a CakePHP shell. So if anyone has any ad...

cannt set my xampp to work with any php debugger

hi, i have been trying to set my XAMPP to work with xdebug php debugger, i have edited the php.ini file with the following parameters: zend_extension_ts="C:\Program Files\Development\xampp\php\ext/php_xdebug-2.0.5-5.2.dll" xdebug.remote_enable=On xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler=dbgp after ...

How to debug PHP with netbeans and Xdebug in Windows?

Hi All, I have installed PHP using wamp server in Windows and I have give the entry for Xdebug in php.ini And Debugging not working in netbeans. How to solve this? Thanks ...

NetBeans PHP does not break on exception

I'm trying to debug some PHP using NetBeans PHP 6.8 with XAMPP on Windows and setup xdebug in php.ini. The step by step seem working fine but when there is a critical exception on the website in the PHP, NetBeans doesn't break on it. I heard about adding a break-point on Exception but I couldn't find it in NetBeans 6.8. The Ctrl + Shift...

Setting break points in a PHP script (not a web page) using eclipse

I'm running eclipse 3.5 (Galileo) with the PHP development tools (PDT) plug in. I also installed XDebug by following these instructions. It works great when I debug a web page running on localhost. I can set break points and step through the code. However, I can't debug a PHP script. I can run it, and I see the output from print statem...

xDebug seems OK installed, but not connecting with NetBeans

I have now tried for hours getting xDebug (2.0.5 compiled from source) to work on my MacBook OS X with NetBeans 6.8. I have installed MAMP and am running a small PHP (5.2) test program with it, no problem. But when I try to debug I get this text in Netbeans: "Waiting for connection (netbeans-xdebug)" and nothing more happens. Netbeans is...