Skip to content

Commit

Permalink
conventions: update debug conventions
Browse files Browse the repository at this point in the history
Step in and Step out are now, i and o respectively.
Inspect a value is now v.
Next step is now s.

These new conventions better fit evilificiation.
  • Loading branch information
syl20bnr committed Apr 2, 2017
1 parent 90e63ad commit da1b130
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
7 changes: 4 additions & 3 deletions doc/CONVENTIONS.org
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,12 @@ The base prefix for debugging commands is ~SPC d~.
| ~m d B~ | clear all breakpoints |
| ~m d c~ | continue |
| ~m d d~ | start debug session |
| ~m d i~ | inspect value at point |
| ~m d i~ | step in |
| ~m d l~ | local variables |
| ~m d n~ | next |
| ~m d o~ | step out |
| ~m d r~ | run |
| ~m d s~ | step |
| ~m d s~ | next step |
| ~m d v~ | inspect value at point |

Notes:
- Ideally a transient-state for breakpoint navigation should be provided.
Expand Down
4 changes: 2 additions & 2 deletions layers/+lang/clojure/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ As this state works the same for all files, the documentation is in global

| Key Binding | Description |
|-------------+--------------------------------|
| ~SPC m d r~ | reload namepspaces |
| ~SPC m d b~ | instrument expression at point |
| ~SPC m d e~ | display last stacktrace |
| ~SPC m d i~ | inspect expression at point |
| ~SPC m d r~ | reload namepspaces |
| ~SPC m d v~ | inspect expression at point |

*** Refactoring

Expand Down
2 changes: 1 addition & 1 deletion layers/+lang/clojure/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@

"db" 'cider-debug-defun-at-point
"de" 'spacemacs/cider-display-error-buffer
"di" 'cider-inspect
"dv" 'cider-inspect

;; refactorings from clojure-mode
"rc{" 'clojure-convert-collection-to-map
Expand Down
6 changes: 3 additions & 3 deletions layers/+lang/haskell/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ Debug commands are prefixed by ~SPC m d~:
| ~b~ | break on function |
| ~c~ | continue the current computation |
| ~d~ | delete object at the point |
| ~n~ | go to next step to inspect bindings |
| ~N~ or ~p~ | go to previous step to inspect the bindings |
| ~i~ | step into the next function |
| ~r~ | refresh the debugger buffer |
| ~s~ | step into the next function |
| ~s~ | go to next step to inspect bindings |
| ~S~ | go to previous step to inspect the bindings |
| ~t~ | trace the expression |

** REPL
Expand Down
7 changes: 3 additions & 4 deletions layers/+lang/haskell/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,10 @@
"b" 'haskell-debug/break-on-function
"c" 'haskell-debug/continue
"d" 'haskell-debug/delete
"n" 'haskell-debug/next
"N" 'haskell-debug/previous
"p" 'haskell-debug/previous
"i" 'haskell-debug/step
"s" 'haskell-debug/next
"S" 'haskell-debug/previous
"r" 'haskell-debug/refresh
"s" 'haskell-debug/step
"t" 'haskell-debug/trace)

;; configure C-c C-l so it doesn't throw any errors
Expand Down
4 changes: 2 additions & 2 deletions layers/+lang/scala/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ with
| ~SPC m d B~ | clear breakpoint |
| ~SPC m d C~ | clear all breakpoints |
| ~SPC m d c~ | continue |
| ~SPC m d i~ | inspect value at point |
| ~SPC m d i~ | step |
| ~SPC m d n~ | next |
| ~SPC m d o~ | step out |
| ~SPC m d q~ | quit |
| ~SPC m d r~ | run |
| ~SPC m d s~ | step |
| ~SPC m d t~ | backtrace |
| ~SPC m d v~ | inspect value at point |

*Note:* These key bindings need a transient-state, PR welcome :-)

Expand Down
4 changes: 2 additions & 2 deletions layers/+lang/scala/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@
"dB" 'ensime-db-clear-break
"dC" 'ensime-db-clear-all-breaks
"dc" 'ensime-db-continue
"di" 'ensime-db-inspect-value-at-point
"di" 'ensime-db-step
"dn" 'ensime-db-next
"do" 'ensime-db-step-out
"dq" 'ensime-db-quit
"dr" 'ensime-db-run
"ds" 'ensime-db-step
"dt" 'ensime-db-backtrace
"dv" 'ensime-db-inspect-value-at-point

"ee" 'ensime-print-errors-at-point
"el" 'ensime-show-all-errors-and-warnings
Expand Down

0 comments on commit da1b130

Please sign in to comment.