Oneness - True Faith
wizanda
Easy Guide for WampServer , XDebug and WinCacheGrind Posted on: 2008/7/29 11:33
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2113
Me personally like WampServer over the others, as its clean and tidy, only thing is the Xdebug Add-on doesnít exist anymoreÖ..
So here is a quick guide on how to do this in easy steps:

1): download all the software needed:
WampServer
XDebug
You need the release that matches the PHP version youíre using.
WinCacheGrind
If youíre not on Windows you can use:
KCacheGrind

2):
a): Install WampServer.
b): Place the Xdebug.dll in the PHP versions ext folder:
Quote:
example:
C:\wamp\bin\php\php5.2.5\ext\php_xdebug-2.0.3-5.2.5.dll

c): Open php.ini; the easiest way is via the WampServer toolbar icon.
d): Search for extensions, add the xdebug info and save it, if you donít want profiling you can miss them bits.
Make sure you use the full address, as wouldnít work otherwise.

You can find a full list of different tools within Xdebug here
Iíve made an extra folder for my xdebugís profiling files in the root of WampServer, so itís easier for WinCacheGrind, default is /tmp.
e): Restart WampServer by exiting it.
f): To check if this is working, you can make this file and open it from the browser, it should have all xdebug settings within it.
You should also find in the WampServer extensions from the toolbar icon, it now has xdebug added.

g): Install WinCacheGrind, within its options set the newly made folder; which if all is set as above it will have one file that is replaced by the new one, you can set a unique name, yet you then get countless profiling files for each page loaded.

If all that is done ok, you should now be able to profile a PHP system

N B with U
Transfer Print PDF Bookmark Top
Top Previous Topic Next Topic
Register To Post
 This site is Hosted by Servage.Net