Debugging Common Lisp: “I feel so much faster and free”

_____ __ __ __
/ ___/ / / \ \/ / |\ _,,,—,,_
\__ \ / / \ / /,`.-‘`’ -. ;-;;,_
___/ / / /___ / / |,4- ) )-,_..;\ ( `’-‘
/___…


This content originally appeared on DEV Community and was authored by vindarel

          _____    __   __  __        
         / ___/   / /   \ \/ /               |\      _,,,---,,_
         \__ \   / /     \  /                /,`.-'`'    -.  ;-;;,_
        ___/ /  / /___   / /                |,4-  ) )-,_..;\ (  `'-'
       /____/  /_____/  /_/                '---''(_/--'  `-'\_)

Read on:

Man CL is awesome. I absolutely love being able to debug libraries, live, when there's a problem. Registering stickers, changing the library code, hot reloading... god,

I feel so much faster and free.

[Question] Sly stickers are basically like elisp's edebug stepping through code yea?

Yes, but more pin-point. You can consume the results in two ways:

  1. Run the code to completion and inspect all results of all stickers after-the-fact
  2. Turn on "breaking stickers" and have the debugger come up before and after each sticker, displaying the results.

It's great for visibility. I noticed some weird behaviour in a library this morning, so I jumped-to-def, which took me into my local Qlot copy of the lib, then I set a bunch of stickers, recompiled the function, then ran my own code to inspect the issue.

"When I run my code X, what is happening at library location Y?" <- I can answer this question instantly in CL but not other langs.

This is not me saying this for once, but someone proficient in Rust, Haskell, Clojure and CL (and probably more), also the author of the AURA package manager for Arch Linux.

and… that's it!


This content originally appeared on DEV Community and was authored by vindarel


Print Share Comment Cite Upload Translate Updates
APA

vindarel | Sciencx (2024-08-19T16:35:53+00:00) Debugging Common Lisp: “I feel so much faster and free”. Retrieved from https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/

MLA
" » Debugging Common Lisp: “I feel so much faster and free”." vindarel | Sciencx - Monday August 19, 2024, https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/
HARVARD
vindarel | Sciencx Monday August 19, 2024 » Debugging Common Lisp: “I feel so much faster and free”., viewed ,<https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/>
VANCOUVER
vindarel | Sciencx - » Debugging Common Lisp: “I feel so much faster and free”. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/
CHICAGO
" » Debugging Common Lisp: “I feel so much faster and free”." vindarel | Sciencx - Accessed . https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/
IEEE
" » Debugging Common Lisp: “I feel so much faster and free”." vindarel | Sciencx [Online]. Available: https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/. [Accessed: ]
rf:citation
» Debugging Common Lisp: “I feel so much faster and free” | vindarel | Sciencx | https://www.scien.cx/2024/08/19/debugging-common-lisp-i-feel-so-much-faster-and-free/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.