Debugging Forms

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
johnmcglaughlin
Posts: 20
Joined: Mon Aug 25, 2008 6:19 am

Debugging Forms

Post by johnmcglaughlin »

First, Karlis thank you for awesome upgrades...

Debugger works fantastic walking through php scripts, includes etc.;

HOWEVER

I have been unsuccessful at debugging form/script pairs.

I have a complex form that I need to test verification script against. Unfortunately the only way I can do this is to stub the input to the script directly. I would like to run the debugger from the form and have the breakpoints execute in the script.

Debugger settings are Display output in web browser ( does not mater setting)
Script parameters empty,
and Listen to externals.

Run on form takes me directly to Verification script on browser without executing break point immediately upon entering verification script (from Submit button).

I'll go back to stubbing for now, but hopefully you can give me a solution before I complete testing to make life easier to debug corner cases.

Thanks
John
johnmcglaughlin
Posts: 20
Joined: Mon Aug 25, 2008 6:19 am

Re: Debugging Forms

Post by johnmcglaughlin »

Interestingly
Webbuilder has been soft crashing while debugging,
I have just continued through the last three times.
I added echo debugs to the verification script so I know where it is (debugging the OLD WAY)
start things up again and....

Debugger started tracking the break points

???????

I guess I should move to 10.2

after I am done with this.
================
EDIT
================
Darn
Seems to be intermittent
The debug session was a one time thing...
johnmcglaughlin
Posts: 20
Joined: Mon Aug 25, 2008 6:19 am

Re: Debugging Forms

Post by johnmcglaughlin »

I am finding good results by making an initial call to the actual server page from the browser as
http://localhost:[port]/path/form.php?XDEBUG_SESSION_START=webuilder&

Doing this seems to reliable launch the debugger.

Going into the Webuilder form.php page and running debugger per instruction is VERY sporadic at best. While it launches the in the web browser with the above URL. It does not seem to be able to link to the debugger.

Copy and paste of the URL into a fresh browser page seems to work.
Post Reply