Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793355
Debugger.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
728 B
Referenced Files
None
Subscribers
None
Debugger.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Keruald\OmniTools\Debug
;
class
Debugger
{
/**
* Prints human-readable information about a variable, wrapped in a <pre> block
*
* @param mixed $variable the variable to dump
*/
public
static
function
printVariable
(
$variable
)
:
void
{
echo
"<pre class='debug'>"
;
print_r
(
$variable
);
echo
"</pre>"
;
}
public
static
function
printVariableAndDie
(
$variable
)
:
void
{
static
::
printVariable
(
$variable
);
die
;
}
///
/// Comfort debug helper to register debug method in global space
///
public
static
function
register
()
:
void
{
require_once
'_register_to_global_space.php'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2435908
Default Alt Text
Debugger.php (728 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment