enabling Xdebug on windows 7 XAMMP 1.7.4 - php

I am using Windows 7 and XAMMP 1.7.4. I am confused on how to enable Xdebug. Googling suggested to download xDebug dll , but there are different version of dll on Xdebug site , which confusing me.
Moreover there is Zend debugging and then there Xdebug which one to use ??
How can i enable debugging in Xdebug.

You can follow this tutorial on getting started with xdebug : http://devzone.zend.com/article/2803-Introducing-xdebug
Xdebug and ZendDebug are two separate debuggers, it's up to you to decide which one to use. Either one is pretty easy to setup. Only a couple of steps in Eclipse.
Post the content from your php info page into this page to find out which version to download : http://www.xdebug.org/find-binary.php
Just match your PHP version and OS version. Windows is generally the *VC6 version

Related

Switching from Netbeans 8.2 to Apache Netbeans 10 for PHP Development

Currently I'm using the Netbeans version 8.2 for PHP developing purposes. I'm in need of finding whether switching to Apache Netbeans version 10 will create any conflicts and issues in 'Glassfish server based PHP projects' that I have partially completed in Netbeans version 8.2.
No... There won't be any issue in doing the aforementioned switch..
Here you get a really short answer: no.

I Can't Get Xdebug To Be Installed On My Mac?

i have tried to install xdebug on my mac using home-brew everything seems alright, with no errors, but when i execute phpinfo method i don't find debug module there, i have tried million times with no success, so i have read an answer here in StackOverFlow for the same reason which suggests follow these instructions http://xdebug.org/wizard.php i have copied all code source of phpinfo page, and they gave me detailed instructions, i have followed there guide with no errors after restarting my server and refresh phpinfo page, and still no xdebug !!
php.ini - http://pastebin.com/RLyzXJ9z
phpinfo() code source - http://pastebin.com/H8XVX5GG
Based on your comments, the version of Xdebug isn't the one that matches the version of php running in either your Apache mod_php or your php-fpm (if you're on nginx).
I'm guessing if you used brew, your CLI php is really in /usr/local/something... and that matches the version for your xdebug. On the other hand you whatever PHP flavor you're using for your webserver to work with is different.
My vote would be to ditch the local php or brew installed version and use something like MAMP that runs 100% it's own libraries. Adding Xdebug to MAMP is pretty well documented if you google for it.

site is running slow when php version is newer than 5.2

My site had worked great untill I updated its php version to 5.4.4 (I also tryed 5.3), I can't continue using php v5.2 because I have added some function that are not supported in 5.2 version.
I work on a windows server.
Profile your PHP with xdebug.
You can see PROFILING PHP WITH XDEBUG AND WEBGRIND, the main parser of xdebug files (kcachegrind) is native for Linux.
An alternative is windows port of kcachegrind, but I never tried it.
XHProf is another simple tool for Profiling
It's very simple to use and configure.

Debug Drupal with Ubuntu 10 & PHP5.2

hey
im trying to debug drupal with xdebug , here is the system info:
PHP Version 5.2.10-2ubuntu6
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
the thing is that im working via local network so my machine is like 192.168.1.100 and the server is 192.168.1.101
is there a way to debug it using xdebug ? i can use zend studio 8 or eclipse pdt or whatever software you can recommend to do this
please help me
I once setup the Drupal debugging environment with xdebug under windows. Not sure whether it applies to Ubuntu as well. But you can take a look and try. Don't forget to post your feedback here (or directly reply to my blog there:). Here's the link
Update: got it working on my Ubuntu 10.10. Basically the steps in the above links are fine, except you might need to build the xdebug your self, which is quite well documented in its documentation.
Yes, it is quite easy to set up if you follow the xdebug instructions. Just make sure that the xdebug port is available over the network (in your xdebug.ini) and that it is enabled and it will work as if it were installed locally.

Using XDebug for Drupal 6.14 on Snow Leopard?

Just wondering if you anybody has had much luck getting XDebug working for Drupal 6.14 on Snow Leopard?
I noticed that Snow Leopard seems to come with php 5.3 which some people say should work with Drupal 6.14, though I haven't had any luck.
After that failed, I tried installing php 5.2 using macports (checking out from CVS at a previous revision number). This works fine for php. However, I have had no such luck getting XDebug going.
Any thoughts???
Thanks!
If xdebug is enabled it should show up if you execute a phpinfo();. After xdebug is configured properly you can connect to it using Netbeans. Download the php version here: NetBeans Download. You will have to create a project and point netbeans to your Drupal install. After that you can set breakpoints and press run.
I created a step by step instruction on how to install and enable Xdebug with Netbeans:
http://lucwollants.wordpress.com/2010/10/10/xdebug-and-snow-leopard-more-cake/
Hope this can also help!

Categories