Debug a PHP script in JavaScript console

in code

Useful little tidbit if you don’t have access to the machine on which the script is run, but don’t want to spit PHP debug code all over the page:

<?php echo "<script>console.log('" . $message . "');</script>"; ?>
function browser_console_log($message) {
    echo "<script>console.log('" . $message . "');</script>";

Remap a JavaScript Object

in code

Ik ben gelukkig

in me

Sacred Dissatisfaction

in running

Your email address will not be published. Required fields are marked *