@revideo/core / utils / debug
Function: debug()
debug(
payload):void
Defined in: utils/debug.ts:43
Logs a debug message with an arbitrary payload.
Parameters
payload
any
The payload to log
Returns
void
Remarks
This method is a shortcut for calling useLogger().debug() which allows
you to more easily log non-string values as well.
Example
export default makeScene2D(function* (view) {
const circle = createRef<Circle>();
view.add(
<Circle ref={circle} width={320} height={320} fill={'lightseagreen'} />,
);
debug(circle().position());
});