Re: [racket-users] Require the same file repeatedly for debugging on command line

2017-03-15 Thread Marc Kaufmann
Ha, very nice. That's exactly what I was looking for - at least it works if I drop the "#lang racket" at the beginning of the file. If I do include it and thus, if I understand correctly, make it a module, it somehow does not seem to load it properly. Short example for file test.rkt: #lang racket

Re: [racket-users] Require the same file repeatedly for debugging on command line

2017-03-15 Thread Greg Hendershott
Have you tried using XREPL -- perhaps its ,enter command or ,require-reloadable? https://docs.racket-lang.org/xrepl/index.html On Mon, Mar 13, 2017 at 9:44 PM, Marc Kaufmann wrote: > Hi all, > > while trying to debug, I often change the code in the text file and then want > to do a (require "

[racket-users] Require the same file repeatedly for debugging on command line

2017-03-13 Thread Marc Kaufmann
Hi all, while trying to debug, I often change the code in the text file and then want to do a (require "file-with-code.rkt") on the command line to test the new code. This never works, because I cannot redefine imported modules. Thus I always use Dr Racket for this, where I can hit the "Run" bu