PHP code example of google / cloud-debugger
1. Go to this page and download the library: Download google/cloud-debugger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
google / cloud-debugger example snippets
$agent = new Google\Cloud\Debugger\Agent();
$agent = new Google\Cloud\Debugger\Agent([
'sourceRoot' => '/path/to/source/root'
]);
use Google\Cloud\Debugger\DebuggerClient;
$debugger = new DebuggerClient();
$debuggee = $debugger->debugee();
$debuggee->register();
$agent = new Google\Cloud\Debugger\Agent([
'logger' => new Monolog\Logger('name')
]);