I try to setup standalone php-console on Wordpress. Site is on localhost.
I've made all necessary preparations and extension works in standalone (not Wordpres) index.php, minimal working code is:
<?php
require __DIR__ . '/classes/vendor/autoload.php';
\PhpConsole\Helper::register();
PC::debug(23);
Then I try to integrate it into my theme, in my functions.php:
<?php
add_action('init', function() {
require __DIR__ . '/classes/vendor/autoload.php';
\PhpConsole\Helper::register();
PC::debug(23);
});
Seems like extension starts and even outputs some data into HTTP-headers, related to php-console. But I can't get Chrome notifications with debug data.
I tried recipes from #88, but with no luck.
I know about special WP-phpconsole plugin, but question is related to standalone php-console build.