[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape 3a05121b02 019/123: Fix adapter examples
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape 3a05121b02 019/123: Fix adapter examples |
Date: |
Tue, 5 Dec 2023 03:57:57 -0500 (EST) |
branch: externals/dape
commit 3a05121b02cd005fe8d94068bc35a2cdffb72419
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fix adapter examples
---
README.org | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/README.org b/README.org
index 82dd598608..cb613968c9 100644
--- a/README.org
+++ b/README.org
@@ -1,5 +1,6 @@
#+title: Dape - Debug Adapter Protocol for Emacs
#+author: Daniel Pettersson
+#+property: header-args :results silent
#+language: en
This package integrates debug adapters within Emacs.
@@ -73,7 +74,8 @@ To install ~vscode-js-debug~ pull down the
[[https://github.com/microsoft/vscode
Example launch configuration for ~node~.
#+begin_src emacs-lisp
- (add-to-list `(vscode-js-node
+ (add-to-list 'dape-configs
+ `(vscode-js-node
modes (js-mode js-ts-mode)
host "localhost"
port 8123
@@ -90,8 +92,7 @@ Example launch configuration for ~node~.
:enableContentValidation t
:autoAttachChildProcesses t
:console "internalConsole"
- :killBehavior "forceful")
- dape-configs)
+ :killBehavior "forceful"))
#+end_src
For more information see
[[https://github.com/microsoft/vscode-js-debug/blob/main/OPTIONS.md][OPTIONS.md]].
@@ -100,7 +101,8 @@ For more information see
[[https://github.com/microsoft/vscode-js-debug/blob/mai
See
[[https://github.com/go-delve/delve/tree/master/Documentation/installation][delve
installation]].
#+begin_src emacs-lisp
- (add-to-list `(delve
+ (add-to-list 'dape-configs
+ `(delve
modes (go-mode go-ts-mode)
command "dlv"
command-args ("dap" "--listen" "127.0.0.1:55878")
@@ -110,8 +112,7 @@ See
[[https://github.com/go-delve/delve/tree/master/Documentation/installation][
:type "debug"
:request "launch"
:cwd dape-cwd-fn
- :program dape-cwd-fn)
- dape-configs)
+ :program dape-cwd-fn))
#+end_src
For more information see
[[https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md][documentation]].
@@ -120,7 +121,8 @@ For more information see
[[https://github.com/go-delve/delve/blob/master/Documen
Download latest [[https://github.com/vadimcn/codelldb/releases][release]] and
unpack ~vsix~ file with your favorite unzipper.
#+begin_src emacs-lisp
- (add-to-list `(codelldb
+ (add-to-list 'dape-configs
+ '(codelldb
modes (c-mode c-ts-mode
c++-mode c++-ts-mode
rust-ts-mode rust-mode)
@@ -132,8 +134,7 @@ Download latest
[[https://github.com/vadimcn/codelldb/releases][release]] and un
:type "lldb"
:request "launch"
:cwd dape-cwd-fn
- :program dape-find-file)
- dape-configs)
+ :program dape-find-file))
#+end_src
See [[https://github.com/vadimcn/codelldb/blob/v1.10.0/MANUAL.md][manual]] for
more information.
@@ -145,7 +146,8 @@ Then ~chmod +x debugAdapters/bin/OpenDebugAD7~.
#+begin_src emacs-lisp
;; Replace ms-vscode.cpptools with the vsix directory you just extracted
(setq dape-cppdbg-command
"ms-vscode.cpptools/debugAdapters/bin/OpenDebugAD7")
- (add-to-list `(cppdbg
+ (add-to-list 'dape-configs
+ `(cppdbg
modes (c-mode c-ts-mode c++-mode c++-ts-mode)
command-cwd ,(file-name-directory
dape--cppdbg-command)
@@ -156,8 +158,7 @@ Then ~chmod +x debugAdapters/bin/OpenDebugAD7~.
:program dape-find-file
:MIMode ,(cond
((executable-find "gdb") "gdb")
- ((executable-find "lldb") "lldb")))
- dape-configs)
+ ((executable-find "lldb") "lldb"))))
#+end_src
See [[https://code.visualstudio.com/docs/cpp/launch-json-reference][options]].
@@ -166,15 +167,15 @@ See
[[https://code.visualstudio.com/docs/cpp/launch-json-reference][options]].
Install debugpy with pip ~pip install debugpy~
#+begin_src emacs-lisp
- (add-to-list `(debugpy
+ (add-to-list 'dape-configs
+ `(debugpy
modes (python-ts-mode python-mode)
command "python3"
command-args ("-m" "debugpy.adapter")
:type "executable"
:request "launch"
:cwd dape-cwd-fn
- :program dape-find-file-buffer-default)
- dape-configs)
+ :program dape-find-file-buffer-default))
#+end_src
See
[[https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings][options]].
@@ -194,4 +195,5 @@ See
[[https://microsoft.github.io/debug-adapter-protocol/implementors/adapters/]
+ Variable values displayed in source buffer, this seams to require
integration with lsp-mode and eglot
* Bugs and issues
-Before reporting any issues take a look at ~*dape-debug*~ buffer with all
debug messages enabled ~(setq dape--debug-on '(io info error std-server)~.
+Before reporting any issues take a look at ~*dape-debug*~ buffer with all
debug messages enabled.
+~(setq dape--debug-on '(io info error std-server)~.
- [elpa] externals/dape 4c990a5769 110/123: Rename `dape-breakpoint-*' functions for discoverability, (continued)
- [elpa] externals/dape 4c990a5769 110/123: Rename `dape-breakpoint-*' functions for discoverability, ELPA Syncer, 2023/12/05
- [elpa] externals/dape f02fc87e82 116/123: Fix fringe check when placing breakpoints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 8cc8b262c1 059/123: Add custom formatting to dape-info variables, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ebd9ebf6a8 074/123: Default to "sensible" values in `dape-config' when missing, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 5c62153574 042/123: Fix various customization types, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3770a22b28 060/123: Cleanup before emacs exits #8, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b27a7db84c 071/123: Add defcustom buffer actions to Dape buffers, ELPA Syncer, 2023/12/05
- [elpa] externals/dape f982879c17 080/123: Cleanup timeouts before restart, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 5f65524007 102/123: Fix REPL completions when process has never stopped #15, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2831601925 014/123: Small README improvements, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3a05121b02 019/123: Fix adapter examples,
ELPA Syncer <=
- [elpa] externals/dape df0c2d8357 023/123: Require success to launch/attach after initialize, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 161501b4a5 029/123: Fix example in readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 819d4c39f9 028/123: Keep log and expression breakpoints when removing breakpoints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 907828d05e 032/123: Fix toggle breakpoint, ELPA Syncer, 2023/12/05
- [elpa] externals/dape bddc5102b5 039/123: Clarify package description, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 49909a1a39 043/123: Use presentation hits for auto expand locals scope, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 403581170c 048/123: Use header line format for info buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b8a69409da 049/123: Print stopped description, ELPA Syncer, 2023/12/05
- [elpa] externals/dape d6a6a2a75e 051/123: Clarify codelldb adapter example and fix typo #4, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3a31e53782 058/123: Fix sticky breakpoint issue, ELPA Syncer, 2023/12/05