Rebol Programming/dbug

USAGE:

edit
DBUG msg 

DESCRIPTION:

edit

(undocumented)

DBUG is a function value.

ARGUMENTS

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

SOURCE CODE

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