conventions: update debug conventions
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.
This commit is contained in:
parent
36b6b29cde
commit
87cd00eac7
|
@ -225,11 +225,12 @@ The base prefix for debugging commands is ~SPC d~.
|
||||||
| ~m d B~ | clear all breakpoints |
|
| ~m d B~ | clear all breakpoints |
|
||||||
| ~m d c~ | continue |
|
| ~m d c~ | continue |
|
||||||
| ~m d d~ | start debug session |
|
| ~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 l~ | local variables |
|
||||||
| ~m d n~ | next |
|
| ~m d o~ | step out |
|
||||||
| ~m d r~ | run |
|
| ~m d r~ | run |
|
||||||
| ~m d s~ | step |
|
| ~m d s~ | next step |
|
||||||
|
| ~m d v~ | inspect value at point |
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Ideally a transient-state for breakpoint navigation should be provided.
|
- Ideally a transient-state for breakpoint navigation should be provided.
|
||||||
|
|
|
@ -200,10 +200,10 @@ As this state works the same for all files, the documentation is in global
|
||||||
|
|
||||||
| Key Binding | Description |
|
| Key Binding | Description |
|
||||||
|-------------+--------------------------------|
|
|-------------+--------------------------------|
|
||||||
| ~SPC m d r~ | reload namepspaces |
|
|
||||||
| ~SPC m d b~ | instrument expression at point |
|
| ~SPC m d b~ | instrument expression at point |
|
||||||
| ~SPC m d e~ | display last stacktrace |
|
| ~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
|
*** Refactoring
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
|
|
||||||
"db" 'cider-debug-defun-at-point
|
"db" 'cider-debug-defun-at-point
|
||||||
"de" 'spacemacs/cider-display-error-buffer
|
"de" 'spacemacs/cider-display-error-buffer
|
||||||
"di" 'cider-inspect
|
"dv" 'cider-inspect
|
||||||
|
|
||||||
;; refactorings from clojure-mode
|
;; refactorings from clojure-mode
|
||||||
"rc{" 'clojure-convert-collection-to-map
|
"rc{" 'clojure-convert-collection-to-map
|
||||||
|
|
|
@ -218,10 +218,10 @@ Debug commands are prefixed by ~SPC m d~:
|
||||||
| ~b~ | break on function |
|
| ~b~ | break on function |
|
||||||
| ~c~ | continue the current computation |
|
| ~c~ | continue the current computation |
|
||||||
| ~d~ | delete object at the point |
|
| ~d~ | delete object at the point |
|
||||||
| ~n~ | go to next step to inspect bindings |
|
| ~i~ | step into the next function |
|
||||||
| ~N~ or ~p~ | go to previous step to inspect the bindings |
|
|
||||||
| ~r~ | refresh the debugger buffer |
|
| ~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 |
|
| ~t~ | trace the expression |
|
||||||
|
|
||||||
** REPL
|
** REPL
|
||||||
|
|
|
@ -180,11 +180,10 @@
|
||||||
"b" 'haskell-debug/break-on-function
|
"b" 'haskell-debug/break-on-function
|
||||||
"c" 'haskell-debug/continue
|
"c" 'haskell-debug/continue
|
||||||
"d" 'haskell-debug/delete
|
"d" 'haskell-debug/delete
|
||||||
"n" 'haskell-debug/next
|
"i" 'haskell-debug/step
|
||||||
"N" 'haskell-debug/previous
|
"s" 'haskell-debug/next
|
||||||
"p" 'haskell-debug/previous
|
"S" 'haskell-debug/previous
|
||||||
"r" 'haskell-debug/refresh
|
"r" 'haskell-debug/refresh
|
||||||
"s" 'haskell-debug/step
|
|
||||||
"t" 'haskell-debug/trace)
|
"t" 'haskell-debug/trace)
|
||||||
|
|
||||||
;; configure C-c C-l so it doesn't throw any errors
|
;; configure C-c C-l so it doesn't throw any errors
|
||||||
|
|
|
@ -180,13 +180,13 @@ with
|
||||||
| ~SPC m d B~ | clear breakpoint |
|
| ~SPC m d B~ | clear breakpoint |
|
||||||
| ~SPC m d C~ | clear all breakpoints |
|
| ~SPC m d C~ | clear all breakpoints |
|
||||||
| ~SPC m d c~ | continue |
|
| ~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 n~ | next |
|
||||||
| ~SPC m d o~ | step out |
|
| ~SPC m d o~ | step out |
|
||||||
| ~SPC m d q~ | quit |
|
| ~SPC m d q~ | quit |
|
||||||
| ~SPC m d r~ | run |
|
| ~SPC m d r~ | run |
|
||||||
| ~SPC m d s~ | step |
|
|
||||||
| ~SPC m d t~ | backtrace |
|
| ~SPC m d t~ | backtrace |
|
||||||
|
| ~SPC m d v~ | inspect value at point |
|
||||||
|
|
||||||
*Note:* These key bindings need a transient-state, PR welcome :-)
|
*Note:* These key bindings need a transient-state, PR welcome :-)
|
||||||
|
|
||||||
|
|
|
@ -123,13 +123,13 @@
|
||||||
"dB" 'ensime-db-clear-break
|
"dB" 'ensime-db-clear-break
|
||||||
"dC" 'ensime-db-clear-all-breaks
|
"dC" 'ensime-db-clear-all-breaks
|
||||||
"dc" 'ensime-db-continue
|
"dc" 'ensime-db-continue
|
||||||
"di" 'ensime-db-inspect-value-at-point
|
"di" 'ensime-db-step
|
||||||
"dn" 'ensime-db-next
|
"dn" 'ensime-db-next
|
||||||
"do" 'ensime-db-step-out
|
"do" 'ensime-db-step-out
|
||||||
"dq" 'ensime-db-quit
|
"dq" 'ensime-db-quit
|
||||||
"dr" 'ensime-db-run
|
"dr" 'ensime-db-run
|
||||||
"ds" 'ensime-db-step
|
|
||||||
"dt" 'ensime-db-backtrace
|
"dt" 'ensime-db-backtrace
|
||||||
|
"dv" 'ensime-db-inspect-value-at-point
|
||||||
|
|
||||||
"ee" 'ensime-print-errors-at-point
|
"ee" 'ensime-print-errors-at-point
|
||||||
"el" 'ensime-show-all-errors-and-warnings
|
"el" 'ensime-show-all-errors-and-warnings
|
||||||
|
|
Loading…
Reference in New Issue