Profiling PHP application in production on IIS 7 - php

I'd like to profile a PHP application in production. My setup is windows server 2008 with IIS 7 and PHP 5.3 in FastCGI. I know from this question that XHProf Profiler is a good tool but obviously it doesn't work on Windows yet. Should I try with xdebug profiler or has anyone a better suggestion?

Try this:
http://dev.freshsite.pl/php-extensions/xhprof/file/details/xhprof-0103-for-php-53-vc9.html

If you have access to a Zend Studio license the profiler built into Zend Server is fantastic (check out some screenshots here http://files.zend.com/help/Beta/Zend_Studio_8_0/working_with_the_profiler.htm) - otherwise XDebug and a cache grind app will help (see this http://devzone.zend.com/1139/profiling-php-applications-with-xdebug/)

Related

Large PHP project. Debugging with eclipse PDT, xdebug on WAMP

We have a very large enterprise Web application developed using Mojave (MVC) framework in PHP.
Continuous development is still going on. There is an extensive use of AJAX throughout the system.
Debugging an issue is a nightmare currently.
I am wondering if this environment would help in debugging. Or are there any better tools?
Local Development environment:
WAMP
Windows 64
Eclipse PDT with XDebug (Recently installed)
MySQL.
Can we debug Ajax-heavy PHP web applications using XDebug?
Can I setup this project in Eclipse? (Import? Or just open the webroot of the application?)?
Are there any other better tools?
Xdebug doesn't support javascript itself, but you can use the browser extensions (that I've just pointed to in your other question) to start a debugging session when you want it (ie, an ajax-ui action): http://xdebug.org/docs/remote#browser-extensions
cheers,
Derick

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 ZendStudio with XAMPP

I had installed XAMPP, as a matter of convenience, since it installs php, apache (which is what I need) and, in addition, it installs other things like MySQL, but I'm not going to use now.
In XAMPP, I enabled the mssql module (editing the php.ini), to use the connection to Microsoft SQL, and everything works fine.
Now, I'm wanting to debug a script in PHP debugger with ZendStudio and I notice that there are two ways:
Internal
Server
[Internal], uses the ZendStudio "internal" PHP.
[Server], connect to a server (which is what I need).
The point is that I can not do it, I can not understand how it is configured.
I would like to use with the XAMPP apache and php.
I use Internal for now, but I get problems with the mssql module. I was looking at the Zend internal php, copied by hand the mssql dll and edited the php.ini (I am talking about the Zend) but still not working.
Any ideas?
You will need to install either Zend Debugger or xdebug on the server, and then configure Zend Studio accordingly. Both are fairly easy to install on XAMPP, and there are many articles available through Google that detail installation better than I can here.
If you choose to go with Zend Debugger, you shouldn't need to do anything else in Zend Studio, as it is the default debugger. If you opt for xdebug, you will need to edit your Studio configuration to use xdebug instead. This option can be found under PHP > Debug, and is a drop-down labeled PHP Debugger.
Now you can start a debugging or profiling session using the Zend Studio browser toolbar, or from the Remote Debug or Remote Profiling buttons in Studio. I highly suggest reading the Zend Studio manual for some more advanced debugging information.
Also, just to throw this out there, you can replace XAMPP with Zend Server Community, which has Zend Debugger installed and configured by default. Studio 7+ will pick up a Server installation and configures itself to use it automatically.
I'm not all that familiar with ZendStudio, but wouldn't you just use the "Server" option and point to http://localhost/ for the server to connect to?

Profiler for Zend Server (Zend Debugger)

I'm looking for a PHP profiler that works with Zend Server (CE). From what I can tell, XDebug is a pain to setup with Zend Server. While Zend Debugger is free (as I understand it), the Profiler is only on Zend Studio.
Any other options?
I wish I could will you Zend Studio, as the profiler component is quite nice.
XDebug (standalone tip) may be your only option, unfortunately.
Do you have the option of upgrading to Zend Server 5 Professional edition? The Code Tracing feature would help you in profiling. Or, have you looked at PQP or DBG for Eclipse?
I wish I could be more help. The company I work for uses Zend Server for all deployments and the engineers all have Zend Studio.
Good luck.
A late answer, but might still be handy for those who find this question via searching (like I did).
I have Zend Server CE and PHPStorm on a Windows configuration and also wanted to profile some pages. It turned out that since a while it is just built-in in PHPStorm! With the explanation on this page: http://devnet.jetbrains.net/thread/432088 it was a breeze to get it up and running.
PHPStorm is not free (it is for individuals that do open source development) but its prices are absolutely affordable and are paid back for within days looking at the increasement in productivity.
You should consider the Semantic Designs PHP Profiler.
Doesn't require XDEBUG to be installed. Doesn't require any special configuration of your server. Works with huge PHP applications.

Debugging PHP on NetBeans 6.8 without Apache

Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server?
After I press CTRL+F5 im getting 404 not found error.
As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfish is similiar developer server, so why Im getting 404?
Thanks
Darek
From Netbeans page.
To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the NetBeans wiki on XDebug and/or ask the community at users#php.netbeans.org.
I hope it helps

Categories