xdebug

How to trigger XDebug for a command line PHP script?

XDebug offers the configuration directive "xdebug.profiler_enable_trigger" that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via HTTP. This is handy if you don't want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuratio...

Eclipse + Xdebug + WAMP - Need help

I'm trying to debug Drupal on a windows machine using Eclipse (PDT), WAMP, and XDEBUG. Everything seems to be running fine, Eclipse recongnizes when I move between pages (it's shows in the "Remote Launch" section "stepping") but nothing happens, and my breakpoints are ignored. I'm ready to start pulling my last few hairs out, any help ...

Debugging 2 servers with php's Xdebug at the same time.

I have a PHP script that is sending a series of http requests to another php script on another server. I have Xdebug installed on both servers and I'm using NetBeans as my debug client. The problem I am having is that NetBeans can't have 2 debug sessions at the same time and you can't spawn 2 NetBeans processes on the same machine. A...

Remote debugging won't stop at breakpoints

I'm having a problem with xdebug not stopping at breakpoints when using remote debugging (everything is fine when running scripts via the command line). It will break at the first line of the program, then exit, not catching any breakpoints. It used to work fine, until I switched over to using MacPorts for Apache and PHP. I've tried re-...

eclipse xdebug session never completes

I am trying to get xdebug working with eclipse (3.5) / php (on xampp windows 7). I have verified xdebug is enabled in php - I have the fancy output and my phpinfo shows all the xdebug stuff. I have remote debug on, and typed in the lan ip address on my eclipse machine. When I tell eclipse to debug, it launches the browser and passes t...

XDebug is not loaded in PHP (Vista, Apache Module)

I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line: zend_extension_ts="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc9.dll" When I use phpinfo(), xdebug is not loaded. When I run command "php.exe -m", it not loaded as well. How can this be resolved? My configuration: PHP 5.3.1, Apache 2.2...

What xdebug dll should I use under Vertrigo 2.21 and windows 7 and how to confugure it ?

I used to utilize php_xdebug-2.0.3-5.2.5.dll under Windows XP but it is not adopted by Win7 ? What is the thread safe and thread not safe ? ...

What PHP-debugger I can use under Vertrigo 2.21 and windows 7 ?

I used to use xDebug under Windows XP (as written here → http://serge.yrik.org.ua/blog/blog/devblog/14.html), but it doesn work under Win 7 ! ...

Code coverage with phpunit; can't get to one place.

In the xdebug code coverage, it shows the line "return false;" (below "!$r") as not covered by my tests. But, the $sql is basically hard-coded. How do I get coverage on that? Do I overwrite "$table" somehow? Or kill the database server for this part of the test? I guess this is probably telling me I'm not writing my model very well,...

How to debug a web service written in PHP?

Hello, I've got a nice question here :) I need to debug my web service written in PHP. Its client is written in C#. After a couple of days of searching I realized this is not an easy task. At least it seems nobody knows the right solution. What is the problem in, actually? We have 2 popular PHP debugging libraries : PHP Debugger from N...

How to know the xdebug version i have installed?

Hi, how to know the xdebug version i have installed? Regards Javi ...

Why is Netbeans + Xdebug showing repetitive results in Variables pane?

I just started using Netbeans to debug PHP apps, but when I inspect any object it has the CLASSNAME printed over and over, making it very difficult to understand the contents of an object. See the image below to see what I am talking about. Anybody know what is going on? Here are some details that might be important... Netbeans versi...

XDebug, how to disable remote debugging for single .php file?

Hello, I'm using Eclipse IDE + remote Xdebug. EclipseIDE is listening 9000 port for some kind of Xdebug information. There are some php scripts running by cron on server. So, every cron execution xdebug is sending information to my workstation and EclipseIDE is trying to find this file in my project. But file couldn't be find because c...

how to get Apache to reload php.ini in WIndows XP?

I'm trying to install XDebug by registering it in php.ini but it isn't working. I'm thinking maybe my apache server is not reloading my changes properly. -from your friendly PHP noob ...

Failed to Install Xdebug

've registered xdebug in php.ini (as per http://xdebug.org/docs/install) but it's not showing up when i run "php -m" or when i get a test page to run "phpinfo()". I've just installed the latest version of XAMPP. I've used both "zend_extention" and "zend_extention_ts" to specify the path of the xdebug dll. I ensured that my apache server ...

how to configure xdebug.file_link_format for eclipse PDT?

I am using xdebug with eclipse (on OSX). I think I remember reading somewhere that it was possible to link the error output (or the Call Stack) to a text editor (like Textmate). I was wondering if its possible to do the same thing for Eclipse. EDIT: I found out that what I would like to use is the xdebug.file_link_format setting. For...

activate xdebug on mamp?

i'm using MAMP and want to activate xdebug. i've uncomment the following row in php.ini: [xdebug] zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so" i restarted MAMP and opened a php file containing phpinfo() on the web browser and saw a section named "xdebug". so im sure its installed...

Problems debugging virtual host with Netbeans

I'm running Ubuntu 9.10 I installed apache2 and downloaded the php 5.3.2 tar.gz, untarred and compiled. I then installed xdebug via pecl. After that I installed mysql-server and PhpMyAdmin. PhpMyAdmin can change apache2 settings, and now, xdebug is no longer included in my phpinfo(); overview. I've done a search for all possible php.in...

why does xampp not come with xdebug?

xdebug is widely used by developers and since xampp is meant to be used in development environment i wonder why it doesnt come with xdebug installed? so annoying to have to do it manually all the time. ...

Trying to install xdebug: it installed xdebug.so in /usr/lib/php5/20060613+lfs/

Hi, im trying to install xdebug following these easy steps: I installed it in one computer without problems. As expected it installed xdebug.so in /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626 In another computer with the same XAMPP release it installed xdebug in /usr/lib/php5/20060613+lfs/xdebug.so Why does it i...