Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4022927
D1622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
725 B
Referenced Files
None
Subscribers
None
D1622.diff
View Options
diff --git a/core.php b/core.php
--- a/core.php
+++ b/core.php
@@ -2,6 +2,7 @@
namespace Keruald;
+use Keruald\OmniTools\Debug\Debugger;
use Keruald\OmniTools\Identifiers\UUID;
use Keruald\OmniTools\Network\IP;
use Keruald\OmniTools\Strings\Multibyte\StringUtilities;
@@ -90,9 +91,7 @@
* @param mixed $variable the variable to dump
*/
function dprint_r ($variable) {
- echo '<pre>';
- print_r($variable);
- echo '</pre>';
+ Debugger::printVariable($variable);
}
/**
@@ -102,9 +101,8 @@
* @param mixed $variable the variable to dump
*/
function dieprint_r ($variable) {
- dprint_r($variable);
- die;
-};
+ Debugger::printVariableAndDie($variable);
+}
///
/// Client information
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 22:02 (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2363206
Default Alt Text
D1622.diff (725 B)
Attached To
Mode
D1622: Switch dprint_r and dieprint_r to Keruald\OmniTools\Debugger
Attached
Detach File
Event Timeline
Log In to Comment