You are here

README.txt in dBug for Drupal 8

Same filename and directory in other branches
  1. 2.0.x README.txt
  2. 1.0.x README.txt
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" );

File

README.txt
View source
  1. dBug for Drupal
  2. Implementation of dBug for Drupal.
  3. The main modification is to return a render array instead of echo.
  4. Usage:
  5. ======
  6. $dbug_variable = Dbug::debug($variable);
  7. $output['#attached']['library'][] = 'dbug/dbug';
  8. $output['variable'] = [
  9. '#type' => 'markup',
  10. '#markup' => $dbug_variable,
  11. ];
  12. AUTHOR
  13. ===========
  14. Yuri Seki
  15. yuriseki@gmail.com
  16. @see https://github.com/ospinto/dBug
  17. ============================================================================
  18. dBug original comments.
  19. ============================================================================
  20. AUTHOR
  21. =============
  22. Kwaku Otchere
  23. ospinto@hotmail.com
  24. AFTERMARKET HACKER
  25. ==================
  26. Josh Sherman
  27. josh@crowdsavings.com
  28. Thanks to Andrew Hewitt (rudebwoy@hotmail.com) for the idea and suggestion
  29. All the credit goes to ColdFusion's brilliant cfdump tag Hope the next version
  30. of PHP can implement this or have something similar I love PHP, but var_dump
  31. BLOWS!!!
  32. FOR DOCUMENTATION AND MORE EXAMPLES: VISIT http://dbug.ospinto.com
  33. PURPOSE
  34. =============
  35. Dumps/Displays the contents of a variable in a colored tabular format
  36. Based on the idea, javascript and css code of Macromedia's ColdFusion cfdump
  37. tag.
  38. A much better presentation of a variable's contents than PHP's var_dump and
  39. print_r functions.
  40. USAGE
  41. =============
  42. new dBug ( variable [,forceType] );
  43. example:
  44. new dBug ( $myVariable );
  45. if the optional "forceType" string is given, the variable supplied to the
  46. function is forced to have that forceType type.
  47. example: new dBug( $myVariable , "array" );
  48. will force $myVariable to be treated and dumped as an array type,
  49. even though it might originally have been a string type, etc.
  50. NOTE!
  51. ==============
  52. forceType is REQUIRED for dumping an xml string or xml file new dBug
  53. ( $strXml, "xml" );