Skip to content

Latest commit

 

History

History
110 lines (99 loc) · 4.44 KB

README.org

File metadata and controls

110 lines (99 loc) · 4.44 KB

DAP layer

Table of Contents

Description

Experimental integrated visual debugger using Debug Adapter Protocol.

Debug Adapter Protocol is a wire protocol for communication between client and Debug Server. It similar to the LSP but providers integration with debug server.

Layer installation

To use this configuration layer, add it to your ~/.spacemacs. You will need to add dap to the existing dotspacemacs-configuration-layers list in this file.

Features:

Fully featured IDE-like debugger providing:

  • Launch/Attach
  • Breakpoints
  • Exceptions
  • Pause & Continue
  • Step In/Out/Over
  • Callstacks
  • Threads
  • Multiple simultaneous debug sessions
  • Evaluating statements
  • Debug/Run configurations
  • Debug REPL

Configuration

Derived layers

Derived layer should provide information how to configure the language specific debug adapter and the language specific bindings(e. g. debug application, debug test, etc). The package declares function spacemacs/dap-bind-keys-for-mode which should be used by the derived layers to configure the shortcuts.

Declared prefixes

The following prefixes have been declared:

prefixname
SPC m ddebug
SPC m d dlaunching
SPC m d bbreakpoints
SPC m d ldebug windows
SPC m d Scontext switching
SPC m d eeval
SPC m d Iinspect

Default key bindings

The default bindings are listed below. Derived layers should extend this list:

Key bindingDescription
SPC m d d dstart debugging
SPC m d d ldebug last configuration
SPC m d d rdebug recent configuration
SPC m d ccontinue
SPC m d istep in
SPC m d ostep out
SPC m d snext step
SPC m d vinspect value at point
SPC m d rrestart frame
SPC m d .debug transient state
SPC m d aabandon current session
SPC m d Aabandon all process
SPC m d e eeval
SPC m d e reval region
SPC m d e teval value at point
SPC m d S sswitch session
SPC m d S tswitch thread
SPC m d S fswitch frame
SPC m d I iinspect
SPC m d I rinspect region
SPC m d I tinspect value at point
SPC m d b btoggle a breakpoint
SPC m d b cchange breakpoint condition
SPC m d b lchange breakpoint log condition
SPC m d b hchange breakpoint hit count
SPC m d b aadd a breakpoint
SPC m d b ddelete a breakpoint
SPC m d b Dclear all breakpoints
SPC m d '_Run debug REPL
SPC m d w llist local variables
SPC m d w ogoto output buffer if present
SPC m d w slist sessions
SPC m d w blist breakpoints

References