NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Profiling and debugging in deep located scripts


Joined: 25 Nov 2004
Posts: 4
Location: Russia, Moscow
Reply with quote
System: Apache2 + Php 4.3.9 as module + dbg 2.16.14 + phpedit 3.3.2

I have some site with lots of includes and mod_rewrite and stuff..

So there is some functions i have to debug from external browser with DebugBreak(). How can i profile them?

In Russian:

У меня на сайте куча include, используется mod_rewrite и вообще разнообразные странные редиректы и подключения функций и классов.

Есть некоторые функции, каждая выделена в отдельный файл. Как я понял, единственный способ их отлаживать - поставить DebugBreak() и добираться до функции через внешний браузер. А как в таком случае использовать профайлер?

Если я понял неправильно - объясните, пожалуйста, как надо делать правильно Smile
View user's profileFind all posts by NeoromanticSend private messageICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
first of all phpedit != phped Smile.

Quote:
So there is some functions i have to debug from external browser with DebugBreak().

DebugBreak is not the only way. There are other ways to start debug session. Please read FAQ on how to start debug session.

Once debug session is started you get profiler data as well if a) profiler is not disabled in php.ini (see phpinfo() results) and b) is requested with DBGSESSID (for example DBGSESSID=1;d=1,p=1)
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Profiling and debugging in deep located scripts
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