Rebol Programming/vbug

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

VBUG msg 

DESCRIPTION:[edit | edit source]


VBUG is a function value.

ARGUMENTS[edit | edit source]

  • msg -- (Type: block any-string)

SOURCE CODE[edit | edit source]

vbug: func [msg [block! any-string!] /local dbg][
    if not dbg: user-prefs/debug [exit] 
    msg: head insert remold msg "view " 
    either file? dbg [write/append dbg msg] [print msg]