Closed lanceberge closed 2 months ago
Hey!
Have you compiled you program with -g
"Generate debug information"?
If that does not work set (setq dape-debug t)
(does not take affect until next debugging session) then resubmit your *dape-connection events*
buffer.
Amazing, thank you! This got it to work
steps to reproduce
I'm using the default
dape-configs
runninglldb-dap
.I ran it on this file:
average_contiguous_subarray.cpp
Compile with
g++-14 average_contiguous_subarray.cpp -std=c++20
(This is on a Mac with M1)I had to
(add-to-list 'exec-path "/opt/homebrew/opt/llvm/bin")
- but it's finding the executable so this shouldn't (?) be a problem.Set a breakpoint on
int main() {
with M-xdape-breakpoint-toggle
Then M-x
dape
and uselldb-dap
It runs the program, shows the output, but doesn't stop at the breakpoint. It also shows the breakpoint on the left in the line-number fringe and in the dape breakpoint window
Here's my
*dape-connection-events*
: