vegui. sk. debug.js

Dependencies

vegui.sk.std.js

Summary
Starts debug mode that creates a text label attached to the borders of the document that messages can then be printed to using <vsh_dbg_print>
Moves the console to its designated spot taking scroll offset into mind
Stops debug mode
Print a message to the debug console on a new line

Functions

vsk_dbg_start

function vsk_dbg_start(attachTo,
lines,
w,
h)

Starts debug mode that creates a text label attached to the borders of the document that messages can then be printed to using <vsh_dbg_print>

Parameters

string attachTodefines where the debug console will be attached to
<int lines>define possible amount of lines in the console at the same time, default: 100
<int h>height of the console (pixels), default: 100
<int w>width of the console, only relevant when attaching console into a corner, default: 300

attachTo values

’t’top side of the document
’b’bottom side of the document
’ul’upper left side of the document
’lr’lower right side of the document

See also

vsk_dbg_stop

vsk_dbg_adjust

function vsk_dbg_adjust(attachTo,
w,
h)

Moves the console to its designated spot taking scroll offset into mind

Parameters

<string attachTo>defines the position the console will be locked to, if ommited then the current position will be refreshed
<int w>width of the console, only relevant when the console is attached to a corner, default: 300 (px)
<int h>height of the console, default: 100 (px)

vsk_dbg_stop

function vsk_dbg_stop()

Stops debug mode

vsk_dbg_print

function vsk_dbg_print(msg,
color)

Print a message to the debug console on a new line

Parameters

string msgtext to print tothe console
<string color>font color
function vsk_dbg_start(attachTo,
lines,
w,
h)
Starts debug mode that creates a text label attached to the borders of the document that messages can then be printed to using vsh_dbg_print
function vsk_dbg_adjust(attachTo,
w,
h)
Moves the console to its designated spot taking scroll offset into mind
function vsk_dbg_stop()
Stops debug mode
function vsk_dbg_print(msg,
color)
Print a message to the debug console on a new line