NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to debug one PHP page, in the mids of sequencial pages


Joined: 20 Jun 2006
Posts: 1
Reply with quote
Hi all,

Currently I am able to debug a single PHP page directly. My problem is I would need to debug a PHP page, e.g pageX.php. Unfortunately pageX.php will never be able to called directly, it would be redirected to pageA.php --> pageB.php --> pageC.php... before finally go to pageX.php.

I've tried to open pageX.php using the debugger, but when e.g pageA.php was displayed as a final html output, then click some button at pageA output, seems it will never come back to the debugging session on pageX.php code.

Please advice.
View user's profileFind all posts by iwanSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
click some button at pageA output, seems it will never come back to the debugging session on pageX.php code.

Check if pageA and PageX are on the same server (hostname in the URL) and are behind the same protocol (http and http or https and https).
If not, you need to add DBGSESSID to the pageX's URL when your code redirects to pageX from pageA, or add DebugBreak() somewhere in the pageX code. Read FAQ forum on DBGSESSID syntax.

Also, make sure that debug session checkbox is checked in Tools->Settings->Debugger.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Same solution, different method


Joined: 20 Jun 2006
Posts: 5
Reply with quote
An even simpler method is to use the Nusphere IE Toolbar which came with my PhpEd 4.6 and click through the pages until you want to debug. Stop when you get to your debugging point and click the "debug" button on the toolbar.

ddmitrie's method is essentially the same, this is just a little simpler.


I use this method when debugging my large HTML_QuickForm_Controller forms.
View user's profileFind all posts by blarggstarSend private message
How to debug one PHP page, in the mids of sequencial pages
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