From a72215d5f27197ab60fee4e6a1c07d657935144b Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Sun, 16 Jun 2024 12:47:41 -0400 Subject: [PATCH] more debugging! --- gui/manager.rkt | 7 +++++-- info.rkt | 3 ++- scribblings/contributing.scrbl | 5 +++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gui/manager.rkt b/gui/manager.rkt index 1d06080..b0f7327 100644 --- a/gui/manager.rkt +++ b/gui/manager.rkt @@ -1,11 +1,14 @@ #lang racket (module+ main - (require racket/gui/easy/debugger) + (require racket/gui/easy/debugger + (prefix-in dbg: debugging/server)) (define s (make-state)) (command-line #:once-each - [("--debug") "Enable debugging" (start-debugger)] + [("--debug") "Enable debugging" + (start-debugger) + (dbg:serve)] #:args ([save #f]) (when (and save (file-exists? save)) ((load-game s) save)) diff --git a/info.rkt b/info.rkt index 3ec7fc3..1395569 100644 --- a/info.rkt +++ b/info.rkt @@ -5,7 +5,8 @@ (define racket-launcher-libraries '("gui/manager")) (define gracket-launcher-names '("FrosthavenManager")) (define gracket-launcher-libraries '("gui/manager")) -(define deps '("syntax-classes-lib" +(define deps '("dbg" + "syntax-classes-lib" "snip-lib" "pict-snip-lib" "pretty-expressive" diff --git a/scribblings/contributing.scrbl b/scribblings/contributing.scrbl index 0f2f075..0c9b2e4 100644 --- a/scribblings/contributing.scrbl +++ b/scribblings/contributing.scrbl @@ -130,5 +130,6 @@ racket -l frosthaven-manager/gui/deserialized-state to debug the state saved with the Save Game menu item; this is one useful way to capture internal state and inspect it. -The main application accepts a @tt{--debug} flag to start GUI Easy's debugger, -too. +The main application accepts a @tt{--debug} flag to start GUI Easy's debugger +and Racket debugger, too. The latter can be connected to with @tt{raco dbg} if +you have the dbg-ui package.