New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to debug Hammerspoon scripts? #989
Comments
Honestly I think a debugger like that is way beyond our development resources at the moment. I tend to do my debugging with print statements :) |
Add at least a variable watcher. |
+1 for variable watcher. print debugging is painful |
What sort of functionality would you want from a variable watcher? |
The simplest implementation I can think of right now would be a debugger statement which, when executed, would pause execution, and make a window open. This window would show a list of variables available in the current scope and their values. |
Maybe take a look at https://github.com/pkulchenko/MobDebug |
Can it be used with Hammerspoon? |
@aristidesfl I would expect so, but I've never tried it. Any Lua modules should work. |
$ cat ~/.hammerspoon/init.lua
require("mobdebug").start() $ tree ~/.hammerspoon/
/Users/user/.hammerspoon/
├── init.lua
└── mobdebug.lua
|
Btw, any thought on #1235 ? Can't move forward on that one. |
Can this be closed since #1268 is now showing signs of working? |
This one is closed ;) |
Will be nice to have debugger like this: https://youtu.be/52SVAMM3V78
The text was updated successfully, but these errors were encountered: