~williewillus/r16

27c6b5139f67cf07f4070724331c95961f01e4c0 — Vincent Lee 2 years ago 0bfdb43
Add support for debug server
2 files changed, 6 insertions(+), 0 deletions(-)

M info.rkt
M main.rkt
M info.rkt => info.rkt +1 -0
@@ 2,6 2,7 @@
(define collection "r16")
(define version "0.1")
(define deps '("base"
               "dbg"
               "racket-cord"
               "sandbox-lib"
               "slideshow-lib"

M main.rkt => main.rkt +5 -0
@@ 2,6 2,7 @@
#lang racket/base

(require
 (prefix-in dbg: debugging/server)
 (only-in racket/class new send)
 (only-in racket/cmdline parse-command-line)
 (only-in racket/format ~a)


@@ 33,6 34,7 @@
            [module readable?])))]
   [storage path-string?]
   #:optional
   [debugserver boolean?]
   [sandbox
    (config/c
     #:optional


@@ 112,6 114,9 @@
           (vector-ref v 0)
           (vector-ref v 1)))

  (when (hash-ref config 'debugserver)
    (dbg:serve))

  (call-with-sandbox-conf
   (hash-ref config 'sandbox #f)
   (lambda ()