You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies first off, because I am not super competent with elisp. I am working on a small function to invoke dape automatically after performing some additional parsing. When I invoke dape interactively (M-x dape), I can then type myTargetName :args [... some overrided args] and it launches dape. However, when I run dape in my elisp function like so:
(defun test ()
(interactive)
;; Do some work to get some parameters
(dape `(myTargetName :args ["... some overrided args using the above parameter"]))
)
I get an error saying that the argument I passed is not a plist. Does there exist an easy way to call dape from elisp with the above arguments directly?
The text was updated successfully, but these errors were encountered:
Hello! Somewhat confusingly the interactive input to dape i.e. "Run adapter: ..." differs a bit form non interactive.
With interactive use (when you invoke dape as a command)
Dape takes the first symbol and looks up an config i dape-configs and takes the rest of the input and applies on to that configuration that resulting object is the PLIST config which (dape config) is then called with (note that this mechanism does a lot of heavy lifting, like resolving functions and symbols).
So if you wanted to start debugging a go application in "~/go-project" you would need to evaluate:
(dape '( command "dlv"
command-args ("dap""--listen""127.0.0.1::autoport")
command-cwd "~/go-project"
command-insert-stderr t
port :autoport:request"launch":type"debug":cwd".":program"."))
It's not optimal that these formats have diverged and it might be improved in the future.
Hi!
Apologies first off, because I am not super competent with elisp. I am working on a small function to invoke
dape
automatically after performing some additional parsing. When I invokedape
interactively (M-x dape
), I can then typemyTargetName :args [... some overrided args]
and it launches dape. However, when I rundape
in my elisp function like so:I get an error saying that the argument I passed is not a
plist
. Does there exist an easy way to calldape
fromelisp
with the above arguments directly?The text was updated successfully, but these errors were encountered: