Bot messages not yet supported
pocmatos
2017-12-20 20:16:03

@greg is there a way in racket-mode to have source level debugging? i.e. setting breakpoints, running in debug mode, etc?


greg
2017-12-20 20:18:39

@pocmatos No.


greg
2017-12-20 20:19:11

I mean, a couple years ago I got this mostly working. Including, when you hit a breakpoint, you have a full REPL at that point.


greg
2017-12-20 20:19:33

But that’s a pretty stale branch on GitHub now.


greg
2017-12-20 20:19:55

I never merged because I wasn’t sure I wanted to sign up to support that as a feature, if no one really needed it.


greg
2017-12-20 20:20:09

And I’ve only heard a few requests for that.


greg
2017-12-20 20:20:56

For myself, I find that print, racket/trace, and logging (plus of course a REPL) are all I really need — at least for what I do. ¯_(ツ)_/¯


greg
2017-12-20 20:21:15

Also there is #R and debug-repl from… dang, what’s the package…


greg
2017-12-20 20:21:45

Oh, debug :slightly_smiling_face: https://pkgs.racket-lang.org/package/debug


greg
2017-12-20 20:23:58

And of course DrRacket has a step debugger.


greg
2017-12-20 20:25:46

One caveat with DrRacket (and with my experimental stale branch) is that they work by rewriting your program — into a step- and breakpoint-able version of your program.


greg
2017-12-20 20:25:51

So it’s significantly slower.


greg
2017-12-20 20:26:54

Also there’s the question, beyond some foo.rkt file, how many other files do you — or can you — rewrite this way so that you can step through them, too? And the UX for that has always been kind of non-satisfying, in my experience.


greg
2017-12-20 20:28:06

TL;DR I decided not to add this to my list of windmills to tilt


leif
2017-12-20 22:42:30

@mflatt or @robby If you have any thoughts: https://github.com/racket/racket/issues/1916


leif
2017-12-20 22:42:53

(I’m not sure if its a DrRacket bug or a Racket module registry bug (or something else).)


robby
2017-12-20 22:50:40

That’s how Racket works I am sorry to say


robby
2017-12-20 22:50:55

When you load a file and then change the file on the disk, you need a new namespace


robby
2017-12-20 22:51:19

You could say that drr should not let you into its namespace


notjack
2017-12-20 22:51:33

:’(


robby
2017-12-20 22:51:34

And that is a drr bug.


robby
2017-12-20 22:51:47

I hope to fix it someday but it isn’t simple.


joshuarowe
2017-12-20 23:15:54

@joshuarowe has joined the channel


indraniel
2017-12-20 23:22:40

@indraniel has joined the channel


leif
2017-12-20 23:43:31

@robby That makes sense. I just didn’t know what drr was doing.


leif
2017-12-20 23:44:10

But ya, if it is loading the snip into the same namespace the error makes sense.


leif
2017-12-20 23:44:37

Which I guess means it is a caching bug :wink: … just a non-trivial one to fix.


leif
2017-12-20 23:44:39

Anyway, thank you.