Skip to content

How to debug spacehammer in fennel #81

Answered by jaidetree
zhaogu0qing asked this question in Q&A
Discussion options

You must be logged in to vote

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 provides hs.log (as you may already know) and hs.inspect.

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:
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…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zhaogu0qing
Comment options

Answer selected by Grazfather
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants