REBOL Programming/vbug

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

USAGE:[edit]

VBUG msg 

DESCRIPTION:[edit]

(undocumented)

VBUG is a function value.

ARGUMENTS[edit]

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

SOURCE CODE[edit]

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]
]