BLACK HILL SYSTEMS
Published on BLACK HILL SYSTEMS (http://www.blackhillsystems.com)

Home > MOUSE - Application Development Framework > Debugging

Debugging

  • Log in [1] to post comments

objects/Mouse.php

Setting the global variable $DEBUG above the class declaration will provide significant feedback above the webpage's Title Bar and a small amount of feedback in the Message Area below the Menu Bar. If $DEBUG is set at a higher order (eg. std/page.php), the small amount of feedback in the Message Area will also be generated.

As an example:

ATTRIBUTE: seq= Array ( [isa] => int
                Read/Writable? = 1
                Initialize Value =
                Attribute Object ( [key] => seq [vals] => Array [name] => [read_writable] => 1 [isa] => integer [trigger] => [doc] => [type] => string [subtype] => Array

Verb is set? 1 (count)
Attribute exists? 0 (lms_audit)

  • Log in [2] to post comments

std/page.php

Setting the global variable $DEBUG above the class declaration will provide significant feedback below the webpage's Footer. If $DEBUG is set at this level, any pages loaded after it by the system will also have its debugging activated. $DEBUG may also be set in cgi-bin/settings.php.

As an example:

PHP parsed this page in 0.349 seconds.
PHP used 1,108 KB at peak emalloc usage.
PHP used 1,311 KB at peak memory usage.

PHP has loaded the following files to render this page: Array ( [0] => C:\LMS\LIMS\cgi-bin\default.php [1] => C:\LMS\LIMS\cgi-bin\settings.php [2] => C:\LMS\LIMS\lib\objects\Objects.php [3] => C:\LMS\LIMS\lib\objects\Mouse.php [4] => C:\LMS\LIMS\lib\objects\Mouse-SubType.php [5] => C:\LMS\LIMS\lib\objects\Mouse-Attribute.php [6] => C:\LMS\LIMS\lib\objects\Mouse-SubTypes.php [7] => C:\LMS\LIMS\lib\objects\DB.php [8] => C:\LMS\LIMS\lib\objects\Page.php [9] => C:\LMS\LIMS\lib\objects\FilterPage.php [10] => C:\LMS\LIMS\lib\objects\System.php [11] => C:\LMS\LIMS\lib\objects\User.php [12] => C:\LMS\LIMS\lib\objects\Validation.php [13] => C:\LMS\LIMS\lib\objects\Render.php [14] => C:\LMS\LIMS\lib\objects\admin\audit.php [15] => C:\LMS\LIMS\lib\objects\admin\data\audit.php [16] => C:\LMS\LIMS\lib\objects\admin\view\audit.php [17] => C:\LMS\LIMS\lib\std\page.php [18] => C:\LMS\LIMS\lib\std\header.php [19] => C:\LMS\LIMS\lib\std\titlebar.php [20] => C:\LMS\LIMS\lib\std\menubar.php [21] => C:\LMS\LIMS\lib\std\messages.php [22] => C:\LMS\LIMS\lib\std\errors.php [23] => C:\LMS\LIMS\lib\std\footer.php

  • Log in [3] to post comments

Source URL: http://www.blackhillsystems.com/?q=node/19

Links
[1] http://www.blackhillsystems.com/?q=user/login&destination=node/19%23comment-form
[2] http://www.blackhillsystems.com/?q=user/login&destination=node/21%23comment-form
[3] http://www.blackhillsystems.com/?q=user/login&destination=node/22%23comment-form