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.
Functions
Section titled “Functions”debug.print
Section titled “debug.print”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
Section titled “debug.fprint”debug.fprint(...: any): ()Print something to the editor frame message console
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
Section titled “debug.timed”debug.timed(name: string, callback: () -> ()): ()