Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot set debug configuration (gdb/C++) #242

@apalazzi

Description

@apalazzi

I'm trying to set a debug configuration for my c++ project, but whatever I do it doesn't work, when I run M-x dape I'm prompted with

Run adapter: :type
---
gdb :request
launch :name
run with gdb :program
/path/to/build/app :cwd
/path/to/build :args
nil nil

I've put this in my init.el, but the result is the same if I put it .dir-locals.el

(setq dape-configs
      (list
       (list
        :type "gdb"
        :request "launch"
        :name "Run with gdb"
        :program "/full/path/to/your/build/funilib-test-app"
        :cwd "/full/path/to/your/build"
        :args nil))
      )

I also tried variations like

(
 (c-mode
  . ((dape-configs
      . ((:type "gdb"
                :request "launch"
                :name "Run with gdb"
                :program "${workspaceFolder}/build/funilib-test-app"
                :cwd "${workspaceFolder}"
                :args ())))))
 (c++-mode
  . ((dape-configs
      . ((:type "gdb"
                :request "launch"
                :name "Run with gdb"
                :program "${workspaceFolder}/build/funilib-test-app"
                 :cwd "${workspaceFolder}"
                :args ())))))
)

Still the same issue.

As it is the package is unusable, can someone please tell me what to do to configure dape for debugging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions