Confuguring Webgrind and Xdebug with Wamp server in windows?

1,794 views
Skip to first unread message

Retheesh Kumar

unread,
May 22, 2009, 4:12:45 AM5/22/09
to webgrind
Hi,

Does anybody know how to configure webgrind with xdebug using wamp
sever in windows. I tried a lot but was not successful.

Thanks in Advance,
Retheesh Kumar

oetting

unread,
May 22, 2009, 4:25:34 AM5/22/09
to webgrind
Hi,
We are going to need some more information to be able to help you.

Is it webgrind or xdebug you need help configuring?
Do you have xdebug working? E.g. is it generating cachegrind files
when you profile scripts?

/Jacob

Retheesh Kumar

unread,
May 22, 2009, 4:48:28 AM5/22/09
to webgrind

Thanks for the reply.

I think I need the both of them to be configured

I was looking for a tool to check out the function execution time and
all. I found webgrind and installed it. When I checked their docs it
says that we need to install xdebug to work that properly.

I tried to install xdebug was not working for me. So I need a help on
both the items

Actually I downloaded the dll file and put that in the extensions
directory of the wamp server. I also tried to set the path in the ini
file and restarted

In the xdebug samples, it shows like even "var_dump" would be shown in
detail if we confugure xdebug properly.
I was not getting that .

Please let me know.

Thanks,
Retheesh Kumar

oetting

unread,
May 22, 2009, 4:58:30 AM5/22/09
to webgrind
Yes that is correct. Webgrind is a tool for analyzing files generated
by the profiler built in to xdebug. It should be easy to use, once you
have installed xdebug correctly. And you are correct, an easy way to
spot that xdebug is installed correctly is to see if the output from
var_dump has been enhanced. Xdebug should also appear in you phpinfo()
if it is installed correctly.

I am not much of a windows man, so I am afraid I can't help you much
with the installation of xdebug.

I would expect the steps to be (much like what you have done):
1. Download a windows binary version of xdebug (a dll file)
2. Put the dll in the php extensions folder
3. Add the extension by adding a line in the php.ini file
4. Restart apache

Look at the apache error logs, for clues as to what goes wrong.

Since this is a xdebug question you would probably get better help in
a xdebug group.

Jacob Oettinger

Retheesh Kumar

unread,
May 22, 2009, 5:05:44 AM5/22/09
to webgrind...@googlegroups.com
Thanks for the reply.

I had copied the dll and put that in the ext folder. I also gave the path in the ini

When I checked the error log it shows error below

"Failed loading F:\wamp\bin\php\php5.2.9-2\ext\php_xdebug.dll
[Fri May 22 13:32:53 2009] [notice] Child 2956: Child process is running"

I am tracing that. Could you please help out on this

Thanks,
Retheesh Kumar

Retheesh Kumar

unread,
May 22, 2009, 5:07:07 AM5/22/09
to webgrind
Thanks for the reply.

I had copied the dll and put that in the ext folder. I also gave the
path in the ini

When I checked the error log it shows error below

"Failed loading F:\wamp\bin\php\php5.2.9-2\ext\php_xdebug.dll
[Fri May 22 13:32:53 2009] [notice] Child 2956: Child process is
running"

I am tracing that. Could you please help out on this?

Thanks,
Retheesh Kumar

oetting

unread,
May 22, 2009, 5:15:00 AM5/22/09
to webgrind
I am afraid I don't have any real suggestions, as I have, close to, no
experience with running apache on windows.

Have you downloaded the correct dll for your php version?
Have you followed the instructions here: http://www.xdebug.org/docs/install

Jacob Oettinger

Retheesh Kumar

unread,
May 22, 2009, 6:04:22 AM5/22/09
to webgrind...@googlegroups.com
Hi,

I managed to install and configure xdebug now.

Now I need to configure webgrind now. Can you please help me on that?

I checked the webgrind page in google. It has little information to configure it and run.

I will tell you what I am looking for .

I am also new to running php in windows. We have a framework which we need to fine tune properly. For this I need to use webgrind, so that I would know which all functions and methods are taking time to load. I hope this can be done using webgrind.

Please let me know how I can configure this properly.


Thanks,
Retheesh Kumar

oetting

unread,
May 22, 2009, 6:12:10 AM5/22/09
to webgrind
More information please :)

Yes, I known, the information on http://code.google.com/p/webgrind/wiki/Installation
is not adequate for many.

You need to use xdebug to generate profiles of you website, see the
xdebug documentation. This will result in cachegrind files in the
xdebug output dir. These are the files webgrind can parse.

Have you been able to generate the cachegrind files?

Jacob

On May 22, 12:04 pm, Retheesh Kumar <rethees...@gmail.com> wrote:
> Hi,
>

Retheesh Kumar

unread,
May 22, 2009, 6:23:13 AM5/22/09
to webgrind...@googlegroups.com
Hi,

I have set profiling enabled in php.ini and I can see some files coming in my tmp directory whenever I run any website .

Thanks,
Retheesh Kumar

oetting

unread,
May 22, 2009, 6:31:10 AM5/22/09
to webgrind
Need more information...

What happens when you navigate to your webgrind installation? (http://
localhost/webgrind or where ever you have installed it?)
Is the webgrind UI shown?
Is you profiles shown in the dropdown list?
Any errors in the php error log?.

On May 22, 12:23 pm, Retheesh Kumar <rethees...@gmail.com> wrote:
> Hi,
>

Retheesh Kumar

unread,
May 22, 2009, 6:35:07 AM5/22/09
to webgrind...@googlegroups.com
That is what confuses me. No files are shown in that dropdown. Please look at below variables from webgrind config

    static $storageDir = '';
    static $profilerDir = '/tmp';


In that profile directory is shown as tmp. That is the same place where the files are being generated whenever I run any websites.

Any idea about what's happening?

Thanks,
Retheesh Kumar

oetting

unread,
May 22, 2009, 6:39:15 AM5/22/09
to webgrind
Are you only profiling webgrind it self?

By default webgrind will not show profiles of it self. Se the

static $hideWebgrindProfiles = true;

setting.

On May 22, 12:23 pm, Retheesh Kumar <rethees...@gmail.com> wrote:
> Hi,
>

Retheesh Kumar

unread,
May 22, 2009, 7:08:47 AM5/22/09
to webgrind...@googlegroups.com
No. I am running another website and its profile file is coming in tmp directory.

Retheesh Kumar

unread,
May 22, 2009, 7:17:52 AM5/22/09
to webgrind...@googlegroups.com
I changed the output directory to another folder and set the same location in webgrind api also. I am running a website and still it is creating files that profile directory. I have attached that file with this message.

I have sent an invite to chat, can u pls accept that

But for some reason webgrind is not showing in that dropdown

Thanks,
Retheesh Kumar
cachegrind.out.3756
Reply all
Reply to author
Forward
0 new messages