howto profile Drupal based site? |
Site Admin
|
No. Debugger should not append anything to the URLs on your pages. It may send DBGSESSID cookie if you allowed it to do so. Only if this cookie is set, profiling will continue upon further clicks on the links pointing to the same domain (localhost in your case). To allow this you need to check "Debug Session" in the debugger settings. |
||||||||||||||
_________________ The PHP IDE team |
howto profile Drupal based site? |
|
dmitri: Thanks for the quick response.
The debug session option in the settings window has been checked, but the profiler is not working past the first page. I also selected Run Profiler along with the Debugger option and hit on the Run in Debugger option, still it isnt working (its not even opening the profiler window in this case). Any thoughts on how to configure the settings to make drupal based site work. As a matter of fact, i tried to run phpbb3 and wordpress, but either one works past the first page. Also just before posting this page, when I tried to run the profiler, even the first page is not showing any profiler output (its blank) but the Output window shows the page. BTW: I also have APC installed, do you think this is causing the problem? Thanks in advance. |
||||||||||||
|
Site Admin
|
if Debug Session option was checked, DBGSESSID would be with c=1 flag, not with c=0.
sure, it bypassed the profiler. If you need to profile php code, comment out all php caches and restart web server. |
||||||||||||||
_________________ The PHP IDE team |
|
I did double check the debug session option and it is checked, still c=0 is showing. But when I did manually change the c=1 in the url, all the successive calls have been profiled. Thanks for the headsup. Do you know why the debug session option is not being effective in the settings window. (C is for cookie, P is for profiler and what is D stand for in the URL?) Also you mentioned that the php opcode extensions should be uninstalled, does it apply to the php version installed on my WAMP stack or is it in the php version that comes with phped? Thanks for the feedback in advance. You are really being helpful. |
||||||||||||||||
|
Site Admin
|
it triggers debugger.
You need to uninstall or disable opcode cache if you want to work with debugger and profiler. Suppose you've run a file without profiler with APC turned on (same goes to any other opcode cache). So the file is cached by APC as is, without debug info. Next time you try to run the same file with debugger or profiler, opcodes will be picked up from the cache and because they are produced without debug info, neither debugger nor profiler will work. |
||||||||||||||||
_________________ The PHP IDE team |
|
I did double check the debug session option and it is checked, still c=0 is showing. But when I did manually change the c=1 in the url, all the successive calls have been profiled.
Do you know why the debug session option is not being effective in the settings window? |
||||||||||||
|
Site Admin
|
Debug session turns on only if you run debugger. In other words, it works only together with flag d=1. I did not think that it's that useful to have profiler working for sessions. Nevertheless feel free to post feature request to the appropriate forum.
|
||||||||||||
_________________ The PHP IDE team |
|
dmitri: Thanks for following up so quickly. To be frank, this is the first time I am looking into debugging and profiling option for php. I am not quite sure how to debug but rather liked the profiling option as it shows the time it took for all the functions. At this point of time not knowing completely about debugging (particularly step over, step into and other stuff) what I am trying to acomplish is to look at profiler window next to the out put window for all the page requests that I do in the out put window, how can this be accomplished? I will go through the material at your website about debugging and profiling 101. By any chance do you happen to know any weblink that points me to the right direction to start understanding about debugging? |
||||||||||||||
|
Site Admin
|
you can turn "stop on the first line after run" off (see debugger settings) and run debugger. It will run both profiler and debugger. If you don't have any breakpoints, it will work exactly the same way as if profiler were run alone, but sessions will be supported and you can click through all your site. Then check profiler history.
|
||||||||||||
_________________ The PHP IDE team |
|
I did change the setting of stop on the first line after run and hit the run in debugger. It is showing the output window with all variables (d, p, c) as true, but for somereason profiler window and the debugger window are not showing up. just the out put window is showing. Any thoughts? |
||||||||||||||
|
Site Admin
|
you can close profiler window and open it again using Tools->Show profiler
|
||||||||||||
_________________ The PHP IDE team |
howto profile Drupal based site? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by