1. Go to this page and download the library: Download pfinalclub/asyncio-debug 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/ */
enum EventType: string {
case FIBER_CREATED;
case FIBER_STARTED;
case FIBER_SUSPENDED;
case FIBER_RESUMED;
case FIBER_TERMINATED;
case TASK_SUBMITTED;
case TASK_STARTED;
case TASK_COMPLETED;
case TASK_FAILED;
case AWAIT_ENTER;
case AWAIT_EXIT;
case LOOP_TICK;
}
$exporter = new LogExporter();
DebugRuntime::getInstance()->setExporter($exporter);
$exporter = new NullExporter();
DebugRuntime::getInstance()->setExporter($exporter);