Skip to content

Commit

Permalink
feat(debugger): use dap-js instead of legacy debug adapters
Browse files Browse the repository at this point in the history
The debug adapters powering [`dap-node`][vscode-node-debug], [`dap-chrome`][vscode-chrome-debug], and [`dap-edge`][vscode-edge-debug2] have all been deprecated and unmaintained for a while in favour of [`vscode-js-debug`][vscode-js-debug].

`dap-mode` has [added support for `vscode-js-debug`][pr], via `dap-js`.

[vscode-node-debug]: https://github.com/microsoft/vscode-node-debug
[vscode-chrome-debug]: https://github.com/Microsoft/vscode-chrome-debug
[vscode-edge-debug2]: https://github.com/microsoft/vscode-edge-debug2
[vscode-js-debug]: emacs-lsp/dap-mode#733
[pr]: emacs-lsp/dap-mode#369
  • Loading branch information
zeorin committed Jan 15, 2025
1 parent 2bc0524 commit d5b5d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tools/debugger/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
((:lang rust +lsp) :after rustic-mode :require (dap-lldb dap-cpptools))
((:lang javascript +lsp)
:after (js2-mode typescript-mode)
:require (dap-node dap-chrome dap-firefox ,@(if (featurep :system 'windows) '(dap-edge)))))
:require (dap-js dap-firefox)))
"TODO")


Expand All @@ -53,7 +53,7 @@
:defer t
:init (add-to-list '+debugger--realgud-alist
'(realgud:trepan-ni :modes (javascript-mode js2-mode js3-mode)
:package realgud-trepan-ni)))
:package realgud-trepan-ni)))

;; Realgud doesn't generate its autoloads properly so we do it ourselves
(dolist (debugger +debugger--realgud-alist)
Expand Down

0 comments on commit d5b5d50

Please sign in to comment.