Skip to content
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

Add debugging information when debug flag is enabled #23

Open
pvdvreede opened this issue Oct 12, 2017 · 1 comment
Open

Add debugging information when debug flag is enabled #23

pvdvreede opened this issue Oct 12, 2017 · 1 comment

Comments

@pvdvreede
Copy link

Just wondering if there is a debug flag or anything I can turn on for when I am tweaking the commands or config?

I am finding sometimes that a key binding is not firing or that a annotation regex is not picking anything up so it would be good to get some debug information.

Could the in memory state of annotations by class, key bindings and command events be rendered to the corner of the screen or something when a -debug flag is passed in?

Thanks.

@ericfreese
Copy link
Owner

There is currently no debug flag, I've mostly just added logging functionality to the code when needed. I agree there should definitely be some utilities for debugging.

The total number of annotations found is displayed in the top-right corner, just to the left of the current line / total lines indicator. You can use that as a quick sanity check at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants