NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
how does Debug Next Post work ? - IE and FF toolbar


Joined: 11 Apr 2008
Posts: 2
Reply with quote
I am trying to debug a page which posts and just shows me a blank page after posting.

The point is that is that when the post is made there are quite a many php calls after which the output is
suppose to render.

I wish to find out where exactly the code fails during these php calls.
Hence, I used this "Debug Next post" from both IE and FF.
But I am not sure how it works, the debug session starts but I still see the blank page directly without any stepping through the code.
So I am unable to see how and where the code fails.

Has anyone used this feature?
View user's profileFind all posts by lightxSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
I have used the "Debug Next post" feature often. It is supposed to work the way you expect. My guess is that you do not have a valid breakpoint in your script that accepts the POST, e.g. no breakpoint on executable lines. I suggest you enable the option to "Stop on the first line after run" (Tools / Settings / Run & Debug), and see if that triggers a debug session.

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 11 Apr 2008
Posts: 2
Reply with quote
Thanks.

I tried the "Stop on the first line after run" setting, but still does not trigger the breakpoint or the debug session.
May be it starts the debug session, but I am not able to step through it.

I have even added the proper break point, but it was of no use.

It just shows the blank page directly.
View user's profileFind all posts by lightxSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
Does debugging work on other pages in the project? If you are not sure of this, you should try the DBG Wizard to verify that your settings are correct. See new-dbg-wizard-can-help-you-setup-remote-debugging-t3116.html for details.

You could also try the following for more clues as to why the script is outputting a blank page:
* Edit your php.ini and set error_reporting = E_ALL, display_errors = On and log_errors = On. Doing this will make PHP log all errors, warnings and notices to screen and also to an error_log file in the same directory as the script.
* In PhpED, open Tools / Settings / Run & Debug and set the Error Level to 4 - All errors, warnings and notices. This will display the same messages as above, but in PhpED itself. This will (obviously) only work if you have set up your project's debugging correctly.

I hope this helps Wink

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
First you need to make sure that debugger is intalled on the server where you post to. Otherwise toolbar commands are ignored.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
how does Debug Next Post work ? - IE and FF toolbar
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