Skip to content

Commit d74dc0d

Browse files
authored
[dap-lldb] Change :type to lldb-vscode, per the docs (#373)
The documentation says that the :type for both 'attach' and 'launch' requests must be 'lldb-vscode'. (though it appears to work even when the :type is wrong...) An added benefit is that we no longer have any naming conflicts with the dap-gdb-lldb's lldb debug adapter, which has :type 'lldb'.
1 parent 8960be0 commit d74dc0d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.org

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#+STARTUP: content
33

44
* Changelog
5+
** 0.7
6+
- [Breaking change] For ~dap-lldb.el~, change ~type~ to ~lldb-vscode~.
57
** 0.5
68
- added support for running TestNG tests
79
- added ~dap-auto-configure-mode~ as the new ~dap-mode~ integration point.

dap-lldb.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"Populate CONF with the required arguments."
4444
(-> conf
4545
(dap--put-if-absent :dap-server-path dap-lldb-debug-program)
46-
(dap--put-if-absent :type "lldb")
46+
(dap--put-if-absent :type "lldb-vscode")
4747
(dap--put-if-absent :cwd default-directory)
4848
(dap--put-if-absent :program (if (commandp dap-lldb-debugged-program-function)
4949
(call-interactively dap-lldb-debugged-program-function)
@@ -52,9 +52,9 @@
5252

5353
(eval-after-load "dap-mode"
5454
'(progn
55-
(dap-register-debug-provider "lldb" 'dap-lldb--populate-start-file-args)
56-
(dap-register-debug-template "LLDB Run Configuration"
57-
(list :type "lldb"
55+
(dap-register-debug-provider "lldb-vscode" 'dap-lldb--populate-start-file-args)
56+
(dap-register-debug-template "LLDB (VS Code) :: Run Configuration"
57+
(list :type "lldb-vscode"
5858
:cwd nil
5959
:request "launch"
6060
:program nil

0 commit comments

Comments
 (0)