Hacker News new | ask | show | jobs
by NeutralForest 757 days ago
I just wish it was easier to get started with Guile tbh. I'm an Emacs user so I don't have to learn Emacs to use Scheme and I still find the experience pretty bare-bone. There aren't many tutorials about creating Guile projects, writing tests, debugging, etc.
1 comments

And there’s no step debugger available for guile in Emacs like there is for emacs lisp, Common Lisp, racket, and Clojure which is unfortunate
There is step debugging available in Guile plus Geiser, but it's not very reliable. You can call ,next for instance, see: https://www.gnu.org/software/guile/manual/html_node/Interact... https://www.gnu.org/software/guile/manual/html_node/Debug-Co...

Unfortunately the problem is that Guile optimizes away whole chunks of code, and thus debugging information is not as good as it could be, and if you set traps they might be optimized out too. My understanding is that this could be made better, but could use a champion.

(The other trick is to turn off the optimizations when debugging, which is sometimes what I do.)

What is the step debugger for clojure you recommend?
Cider has worked the best for me. I've used Cursive in Intellij but I ran into a lot of issues where it would not trip the debugger for some reason where Cider worked fine.