Closed ezaquarii closed 4 months ago
What version do of dape
do you have?
Your example looks correct. Tried on my machine with success.
Have you set dape-compile-fn
to any other value the the default 'compile
?
Ok, I discovered what was the issue.
My config uses (setq dape-cwd-fn 'projectile-project-root)
. However, this particular project did not have .git
directory nor .projectile.el
, hence projectile-project-root
was nil
.
As a result, it was b0rking deep inside compile
.
I propose some more intelligent version of default dape-cwd-fn
that falls back to default-directory
:
(defun dape-projectile-or-default-directory ()
(unless (projectile-project-root)
(projectile-project-root)
default-directory))
Overall, it turned out to be my configuration issue.
I'm trying to get
gdb
working wothgo
and I need to re-compile test before debugging:When launching dape, it says:
I tried to toggle debug on error, but it's not triggered.
How to use cutsom compile method on debug?