Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix format string in dap-debug-edit-template #793

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

krfantasy
Copy link
Contributor

In e3c2e50, prin1-to-string was replaced with a format string %s, which makes dap-debug-edit-template to produce string object without quoting,

(dap-register-debug-template
  "cpptools::Run Configuration"
  (list :type cppdbg
        :request launch  ;should be a string with quoting "launch", same as below
        :name cpptools::Run Configuration
        :MIMode gdb
        :program ${workspaceFolder}/ replace with your binary
        :cwd ${workspaceFolder}))

In order to replace prin1-to-string, it should use %S(using prin1) instead of %s(using princ).1

Footnotes

  1. https://www.gnu.org/software/emacs/manual/html_node/elisp/Formatting-Strings.html

@yyoncho yyoncho merged commit b407773 into emacs-lsp:master Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants