-
Hello everybody! Sorry for the stupid question, but I'm new to EventLoop/Fiber/async in php. Please tell me how to debug the main EventLoop? For example, I get callback ids that are currently active using EventLoop::getIdentifiers(), using var_dump(EventLoop::getDriver()) I see the types of all fiber IDs. But how to understand by fiber ID which callback is tied to it? Sorry for my bad English, I from Ukraine! P. S. EventLoop use libuv as primary driver |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Callback IDs aren't tied to fibers. You can use |
Beta Was this translation helpful? Give feedback.
Callback IDs aren't tied to fibers. You can use
REVOLT_DRIVER_DEBUG_TRACE
to use theTracingDriver
to record additional debugging information.dump
can be used to get info about the creation traces of still enabled callbacks:event-loop/src/EventLoop/Driver/TracingDriver.php
Line 192 in 358572c