This topic is locked

Use of ECHO to debug

5/22/2007 10:53:56 AM
PHPRunner General questions
K
kenny_robb author

I am using PHP Runner V4.0 (build258)
In order to debug a problem I am having with a page I have put some ECHO commands to display variables on the screen so I can see whats happening.
I am using them in an Afteradd event. IN the pas I have got a string of numbers accross the top. Now whats happening is that they are displaying then they dissappear as I guess the screen reloads.
Id this ment to happen and is there a way to stop the screen reloading so I can see the numbers.
Thanks
Kenny

Sergey Kornilov admin 5/22/2007

Kenny,
page is not realoaded after AfterAdd event and you should be able to see whatever was printed on the page.
Make sure you don't reload this page in your AfterAdd event.
For debug purposes you can also add exit(); function call somewhere in AfterAdd event.

This will stop PHP page execution and you should be able see everything that was printed to this moment.