svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
477 stars 31 forks source link

codelldb error #4

Closed ram535 closed 1 year ago

ram535 commented 1 year ago

I open a cpp project in dired. dape -> codelldb -> program a.out.

Throw this error.

dape--config-eval: Symbol’s value as variable is void: rust-mode

Config.

(add-to-list 'dape-configs
             '(codelldb
               modes (c-mode c-ts-mode
                             c++-mode c++-ts-mode
                             rust-ts-mode rust-mode)
               ;; Replace vadimcn.vscode-lldb with the vsix directory you just extracted
               command "~/.config/emacs/dape/codelldb/extension/adapter/codelldb"
               host "localhost"
               port 5818
               command-args ("--port" "5818")
               :type "lldb"
               :request "launch"
               :cwd dape-cwd-fn
               :program dape-find-file))

There is a typo in the read.me. A missing ")".

 (setq dape--debug-on '(io info error std-server)
svaante commented 1 year ago

Updated example to not rely on the rust-mode package.

Rust mode is only used to derive if the the current buffer is an rust file.

And thanks for finding the typo.

svaante commented 1 year ago

If no further issues with codelldb I am closing this issue, feel free to reopen if that is not the case.