-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 keybindings for debugging using emacs-eclim #2554
Conversation
Heres an example of a micro-state: https://github.com/syl20bnr/spacemacs/blob/master/contrib/!lang/emacs-lisp/packages.el#L54 This should be a good starting point (spacemacs|define-micro-state eclim
:doc "[b] break [r] run [q] quit"
:disable-evil-leader t
:persistent t
:evil-leader-for-mode (java-mode . "md.")
:bindings
("b" gud-break)
("r" gud-run)
("q" nil :exit t)) |
@person808 thanks. I'm almost sure I had something similar but had trouble with entering the microstate. |
Ok, so right now I think it's good for start |
I noticed that one of the recent versions of eclim proper has debugging support in the vim plugin. Would it be possible to add debug support to emacs-eclim as well and use that instead of gud? This is especially important for projects that have complicated run and debug configurations. Just a thought. I don't know how complicated it would be, so it could be totally out of scope. I think eclim has a toggle breakpoint function and a remove all breakpoint function, so it would probably fix that problem as well. |
@Devagamster yeah, for the run and debug configurations I've got fix for that in |
Hmmm. Is there no way to just piggy back on the way that eclipse is set up to run and debug? To me that would be the more natural way to do it. My ideal would be to just pipe all debug commands through to eclipse and let it manage how to start, stop and deal with breakpoints in the project. I suppose if that were done then we would lose a lot of the benifits of using gud like the fringe breakpoints and such... |
Fringe breakpoints? What fringe breakpoints? ;) Unfortunatelly those are only supported for And for the eclipse part then I'm sorry, I don't see working on it any time soon. The debugging is very That being said I welcome you to work on it. Or there's always something to work on so step by to emacs-eclim |
+1 should be merged |
+1 would love this |
You can thumb up the first post to show your support. |
Now that the java layer uses ensime and its debugging facilities, I don't think we need this any more. Sorry! |
This is very basic and not 100% compliant with https://github.com/syl20bnr/spacemacs/blob/master/doc/CONVENTIONS.org#debugging. What is missing:
mdb
I had little problem with defining micro state but with little help I think I could manage it.