Returns a spawn action that, when executed, creates a process with a #:subscriber endpoint listening for every message. Each EndpointEvent received by the endpoint is printed to the current output port. Using this process gives a crude trace of activity within a VM: presence-events and absence-events (of #:publishers) are logged, as is each 'publisher message sent to the VM’s network.
Set the MARKETPLACE_LOG environment variable to "debug", "info", "warning", "error" or "fatal" (i.e. any of Racket’s log-level?s) to enable output of log messages at that level and higher.
If MARKETPLACE_LOG is not defined in the environment, no log output will be produced.
(marketplace-log level format-str arg ...)
level = expr format-str = expr arg = expr
Translates a spawn action to another spawn action which wraps the to-be-spawned process in a debugging interface. Executing the resulting action will not only create a process in the executing VM, but will also open a debugger GUI.
N.B.: The debugger is experimental and likely to change quite quickly and unpredictably.
See the file "examples/debug-chat.rkt" for an example of the use of debug.