svaante / dape

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

Trailing garbage when dape is executed the second time #17

Closed Dickby closed 11 months ago

Dickby commented 11 months ago

If i use dape with codelldb, the first time it prompts for an adapter and i type codelldb, the next prompt is for the file.

If used the second time the adapter prompt is prefilled with: codelldb :cwd "/path/to/project/" :program "path/to/project/file"

pressing enter gives the error message [Trailing garbage following expression], to use dape i have to manually get rid of that garbage.

svaante commented 11 months ago

Hi The codelldb :cwd "/path/to/project/" :program "path/to/project/file" in the minibuffer is by design but the error is not. It's designed that way to be able to re-run the last debug session without much effort.

Could you enable debug on error with M-x toggle-debug-on-error and then show the the stack trace in the *Backtrace*buffer?

Dickby commented 11 months ago

It's not really an error so debug-on-error doesn't do anything, the message is temporarily displayed behind the command in the minibuffer when pressing enter

svaante commented 11 months ago

Which version of emacs do you use? M-x emacs-version

Dickby commented 11 months ago

GNU Emacs 30.0.50 (build 36, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2023-11-09

svaante commented 11 months ago

It was releated to changes in emacs 30 could you please verify that it works

Dickby commented 11 months ago

Works! Thanks a lot!