Link | Debug |
Author | Eric Landmann |
Category | Utility |
Version | 8.x |
License | Public Domain |
Posted | 23 Jun 2008 |
Updated | 23 Jun 2008 |
More by this author... |
Creates a debug container to output debugging information. Works in conjunction with $xDebug = Y as a toggle to turn on/off debugging information. Uses a special stylesheet class called "debug" to format output.
Debug; 'SomeVar = ' $SomeVar '
\n'; 'AnotherVar = ' $AnotherVar '\n'; /Debug;
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
\n'; // /Debug; // Expected Output If $xDebug = Y, contents of debug container will be output // If $xDebug != Y, nothing will output If: !(Lasso_TagExists:'Debug'); Define_Tag: 'Debug', -Container; Local('Start') = ('' + (Response_Filepath) + '
\n'; If: (Var:'xDebug') == 'Y'; Local('Output') = (#Start) + (Run_Children) + (#End); Else; Local('Output') = ('\n'); /If; Return: (Encode_Smart:#Output); /Define_Tag; Log_Critical: 'Custom Tag Loaded - Debug'; /If; /* // Testing Var:'xDebug' = 'Y'; Var:'SomeVar' = 'booha'; Debug; 'SomeVar = ' $SomeVar '
\n'); Local('End') = '
\n'; /Debug; */ ?>
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft