NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Profiling from a different page than home page with Drupal


Joined: 12 Aug 2008
Posts: 5
Reply with quote
Hi-

I'm trying to debug a page on a Drupal site. I have set index.php as the default home page in the debugger. The page I really want to profile is a menu click in, but after the home page is profiled, the session stops.

Is it possible to specify a different URL with arguments?♠
View user's profileFind all posts by pglatzSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
You can add the DBGSESSID to the url to force a debugsession to start, take a look here, maybe that helps?
Otherwise just add DebugBreak(); in your code for the same result.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 12 Aug 2008
Posts: 5
Reply with quote
Thanks; adding the info to the URL lets me profile the page I want.

I was hoping to use DebugBreak(), so I could limit it to a small range of lines. This is the line I inserted:

DebugBreak('1;d=0,p=1');

One page I found said you can insert the same string you use in a URL as an argument, so it is probably a syntax error on my part.

I haven't been able to find any official documentation on DebugBreak() or examples of profiling strategies in the manual. This would be a big help, this is a great tool!
View user's profileFind all posts by pglatzSend private message
Profiling from a different page than home page with Drupal
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic