Skip to content

Commit

Permalink
more debugging!
Browse files Browse the repository at this point in the history
  • Loading branch information
benknoble committed Jun 16, 2024
1 parent 2da33be commit a72215d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions gui/manager.rkt
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
3 changes: 2 additions & 1 deletion info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions scribblings/contributing.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ racket -l frosthaven-manager/gui/deserialized-state <save-file>
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.

0 comments on commit a72215d

Please sign in to comment.