1. Go to this page and download the library: Download behat/debug-extension 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/ */
behat / debug-extension example snippets
use Behat\DebugExtension\Debugger;
class Example
{
use Debugger;
}
public function method()
{
// ...
self::debug([
'Function arguments: %s',
'Second line',
], [
var_export(func_get_args(), true),
]);
// ...
}
new \Behat\DebugExtension\Message('comment', 2, [
'This is a first line of a message that will be printed to a command line.',
'Read documentation for this class to know how to use it.',
]);
shell
export BEHAT_DEBUG=true
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.