dBug for Drupal
Implementation of dBug for Drupal.
The main modification is to return a render array instead of echo.
Usage:
======
$dbug_variable = Dbug::debug($variable);
$output['#attached']['library'][] = 'dbug/dbug';
$output['variable'] = [
'#type' => 'markup',
'#markup' => $dbug_variable,
];
AUTHOR
===========
Yuri Seki
yuriseki@gmail.com
@see https://github.com/ospinto/dBug
============================================================================
dBug original comments.
============================================================================
AUTHOR
=============
Kwaku Otchere
ospinto@hotmail.com
AFTERMARKET HACKER
==================
Josh Sherman
josh@crowdsavings.com
Thanks to Andrew Hewitt (rudebwoy@hotmail.com) for the idea and suggestion
All the credit goes to ColdFusion's brilliant cfdump tag Hope the next version
of PHP can implement this or have something similar I love PHP, but var_dump
BLOWS!!!
FOR DOCUMENTATION AND MORE EXAMPLES: VISIT http://dbug.ospinto.com
PURPOSE
=============
Dumps/Displays the contents of a variable in a colored tabular format
Based on the idea, javascript and css code of Macromedia's ColdFusion cfdump
tag.
A much better presentation of a variable's contents than PHP's var_dump and
print_r functions.
USAGE
=============
new dBug ( variable [,forceType] );
example:
new dBug ( $myVariable );
if the optional "forceType" string is given, the variable supplied to the
function is forced to have that forceType type.
example: new dBug( $myVariable , "array" );
will force $myVariable to be treated and dumped as an array type,
even though it might originally have been a string type, etc.
NOTE!
==============
forceType is REQUIRED for dumping an xml string or xml file new dBug
( $strXml, "xml" );
View source
- dBug for Drupal
-
- Implementation of dBug for Drupal.
-
- The main modification is to return a render array instead of echo.
-
- Usage:
- ======
- $dbug_variable = Dbug::debug($variable);
- $output['#attached']['library'][] = 'dbug/dbug';
- $output['variable'] = [
- '#type' => 'markup',
- '#markup' => $dbug_variable,
- ];
-
- AUTHOR
- ===========
- Yuri Seki
- yuriseki@gmail.com
-
- @see https://github.com/ospinto/dBug
-
- ============================================================================
- dBug original comments.
- ============================================================================
-
- AUTHOR
- =============
- Kwaku Otchere
- ospinto@hotmail.com
-
- AFTERMARKET HACKER
- ==================
- Josh Sherman
- josh@crowdsavings.com
-
- Thanks to Andrew Hewitt (rudebwoy@hotmail.com) for the idea and suggestion
-
- All the credit goes to ColdFusion's brilliant cfdump tag Hope the next version
- of PHP can implement this or have something similar I love PHP, but var_dump
- BLOWS!!!
-
- FOR DOCUMENTATION AND MORE EXAMPLES: VISIT http://dbug.ospinto.com
-
-
- PURPOSE
- =============
- Dumps/Displays the contents of a variable in a colored tabular format
- Based on the idea, javascript and css code of Macromedia's ColdFusion cfdump
- tag.
- A much better presentation of a variable's contents than PHP's var_dump and
- print_r functions.
-
-
- USAGE
- =============
- new dBug ( variable [,forceType] );
- example:
- new dBug ( $myVariable );
-
-
- if the optional "forceType" string is given, the variable supplied to the
- function is forced to have that forceType type.
- example: new dBug( $myVariable , "array" );
- will force $myVariable to be treated and dumped as an array type,
- even though it might originally have been a string type, etc.
-
- NOTE!
- ==============
- forceType is REQUIRED for dumping an xml string or xml file new dBug
- ( $strXml, "xml" );