Jump to content

Rebol Programming/dbug

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
DBUG msg 

DESCRIPTION:

[edit | edit source]

(undocumented)

DBUG is a function value.

ARGUMENTS

[edit | edit source]
  • msg -- (Type: block any-string)

SOURCE CODE

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