How to debug spacehammer in fennel #81
-
i can only use log.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There are a few options. Have you looked at the fennel-lang reference https://fennel-lang.org/reference or the Hammerspoon API docs https://www.hammerspoon.org/docs/index.html? The fennel-lang doc gives us I use print and hs.inspect myself like (print (hs.inspect some-table)) Given that fennel is hosted in lua, some of the lua debug tools may work as well: Additionally there is at least one interactive debugger that has been confirmed to work by the Hammerspoon maintainer: |
Beta Was this translation helpful? Give feedback.
-
You can now use the repl. See #128 |
Beta Was this translation helpful? Give feedback.
There are a few options. Have you looked at the fennel-lang reference https://fennel-lang.org/reference or the Hammerspoon API docs https://www.hammerspoon.org/docs/index.html?
The fennel-lang doc gives us
(print)
and the Hammerspoon API docs provideshs.log
(as you may already know) andhs.inspect
.I use print and hs.inspect myself like
Given that fennel is hosted in lua, some of the lua debug tools may work as well:
https://www.tutorialspoint.com/lua/lua_debugging.htm and confirmed https://groups.google.com/g/hammerspoon/c/x_arf-yI2SU/m/hnnOKyyBDwAJ.
Additionally there is at least one interactive debugger that has been confirmed to work by the Hammerspoon…