Debugging a tool

38 views
Skip to first unread message

Daniel Melcer

unread,
Aug 19, 2020, 5:16:27 PM8/19/20
to Racket Users
Is it possible to run the debugger on an IDE tool?

Or if that isn't possible, is there a way to get a repl? #lang debug (https://docs.racket-lang.org/debug/index.html) works for printing out values to the console, but adding a call to (debug-repl) causes the code to fail raco setup:


write: cannot marshal value that is embedded in compiled code
  value
: #<set!-transformer>
  context
...:
   linklet
-bundle->bytes
   
for-loop
   flatten
-linklet-directory
   write
-linklet-directory
   
/usr/racket/collects/compiler/private/../../racket/private/more-scheme.rkt:261:28
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:730:6
   
/usr/racket/collects/racket/private/more-scheme.rkt:148:2: call-with-break-parameterization
   
/usr/racket/collects/racket/file.rkt:262:5
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:608:0: compile-zo*
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:407:15
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:396:12: build
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:372:0: maybe-compile-zo
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:206:0: compile-root
   
/usr/racket/collects/compiler/private/cm-minimal.rkt:102:4
   
/usr/racket/collects/setup/../racket/private/more-scheme.rkt:261:28
   
[repeats 1 more time]




Reply all
Reply to author
Forward
0 new messages