|
hdebug |
Top Previous Next |
|
This is a very easy way to debug .PHP programs or to collect information from your home page to a SQL table. TT automatically creates the table debug_info within a SQL database as soon as you provide the ODBC data source. Now you may add the function hdebug() to your PHP project by including the source: Click files from the menu and select hdebug source from the popup. You get more information from this file.
There is a screenshot to give an impression of the output of hdebug. Please check for tool tip texts with your mouse. We took some elements from this screen shot to further explain hdebug. You will certainly recall the position of these elements, even if some words displayed in these elements might have changed because we had taken a new screenshot but kept the images in this file.
this gives you the time, the debug line was inserted into the table in the middle and the time difference to the debug line before on the left and the difference to the next line to the right.
When you open the form, you will see a green button on the form. The program has a timer which causes the import of new lines as soon as the are added to the table (debug_info). As soon as a new line is added, the cursor jumps to the last (new) line and displays the content in the edit box. This is certainly convenient if you a watching the progress but you will not appreciate it, when you want to study any line before for a while. Switch this behavior off by clicking the button. The same happens, when you click into the edit field. The button turns red and the timer is off. A click on the red button activates the timer again.
|