Skip to content

Debug

const debug = require("@vectarine/debug")

Debugging utilities

This module contains functions that help with debugging your game. Most of these functions do nothing in a production build.

debug.print(...: any): ()

Print something to the editor console.

Prints to the browser console on the web for when using debug builds. If you are printing inside Update(), consider using fprint.

debug.fprint(...: any): ()
Section titled “Print something to the editor frame message console”

Does nothing when used in the runtime. The message is cleared on the next frame.

debug.timed(name: string, callback: () -> ()): ()