Skip to content

Commit

Permalink
Add debug movement micro-state for java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Klich committed Aug 15, 2015
1 parent 381b65b commit 03a7b67
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/!lang/java/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ option in =emacs-eclim= itself.
|-------------+---------------------------------------------------------------|
| ~SPC m t t~ | run JUnit tests for current method or current file or project |

*** Debug
Please note that most of the keybindings will work after starting the debugger.
| Key Binding | Description |
|-------------+-----------------------------|
| ~SPC m d d~ | Debug current test file |
| ~SPC m d b~ | Create breakpoint |
| ~SPC m d r~ | Run debuged program |
| ~SPC m d c~ | Continue after break |
| ~SPC m d s~ | Step into the method |
| ~SPC m d f~ | Finish current method |
| ~SPC m d n~ | Next line (step over) |
| ~SPC m d l~ | Print local variables state |
| ~SPC m d i~ | Inspect current variable |
| ~SPC m d .~ | Enter debug micro-state |


** Problems buffer
| Key Binding | Description |
Expand Down
15 changes: 15 additions & 0 deletions contrib/!lang/java/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
(add-to-list 'minor-mode-alist
'(eclim-mode (:eval (eclim-modeline-string))))

(spacemacs|define-micro-state eclim
:doc "[b] break [r] run [n] next [s] step [c] cont [i] inspect [q] quit"
:disable-evil-leader t
:persistent t
:evil-leader-for-mode (java-mode . "md.")
:bindings
("b" gud-break)
("r" gud-run)
("n" gud-next)
("s" gud-step)
("i" gud-print)
("c" gud-cont)
("q" nil :exit t))

(evil-define-key 'insert java-mode-map
(kbd ".") 'spacemacs/java-completing-dot
(kbd ":") 'spacemacs/java-completing-double-colon
Expand Down Expand Up @@ -125,6 +139,7 @@
"mdn" 'gud-next
"mdr" 'gud-run
"mds" 'gud-step
"mdf" 'gud-finish
"mdi" 'gud-print
"mdl" 'spacemacs/gud-locals
"mdd" 'eclim-debug-test
Expand Down

0 comments on commit 03a7b67

Please sign in to comment.