svaante / dape

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

CodeLLDB breakpoints don't work #57

Closed bertulli closed 7 months ago

bertulli commented 7 months ago

Thank you for your patience 🙂

Apparently, CodeLLDB seems to ignore my breakpoints. What I mean is that, even after having placed a breakpoint with dape-breakpoint-toggle, the debug runs over it.

Environment:

int main(int argc, char *argv[]) { int a; a = atoi(argv[1]); std::cout << a << "\n"; return 0; }

- dape b9d0579cd2dc2f79f6b24a2b30123adcd3e3131a
- jsonrpc `1.0.24`
- `~/C++/test/.dir-locals.el` file:
```emacs-lisp
;;; Directory Local Variables            -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")

((c++-mode . ((dape-command . (codelldb-cc command-cwd "~/C++/test/" :program "main" :args
                       ["1"]
                       compile "g++ -o main main.cpp")))))

Steps to reproduce:

svaante commented 7 months ago

I believe it's because you have not compiled it with debug flags -g try g++ -g -o main main.cpp

bertulli commented 7 months ago

You're right, sorry :sweat_smile: Thank you!

svaante commented 7 months ago

No problem, extremely nice and clean bug report 👍