REBOL Programming/dbug

USAGE:Edit

DBUG msg 

DESCRIPTION:Edit

(undocumented)

DBUG is a function value.

ARGUMENTSEdit

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

SOURCE CODEEdit

dbug: func [msg [block! any-string!] /local dbg][
    if not dbg: user-prefs/debug [exit] 
    msg: head insert remold msg "desktop " 
    either file? dbg [write/append dbg msg] [print msg]
]
Last modified on 27 October 2012, at 22:14