Skip to content

Debug attach template still asking for a file to run #775

Open
@jarodevs

Description

@jarodevs

I am currently testing out dap-mode in a typescript nodejs environment. I manage to make it work with the following:

Have the server running with a dap socket open
image

Setting up a dap-debug-template accordingly

(dap-register-debug-template
  "Test attach"
  (list :name "Test attach"
        :type "node"
        :request "attach"
        :port 9229))

Next step is placing a line break on this piece of code: (it's in green)
image

Finally running dap-debug gives sequentially

  1. Select template
    image
  2. Select file to run and here is my problem:
    image

In this case I could select any of the 3 options, the debugger would attach successfully. I am just wondering if I am miscomprehending the prompt here or it just should not be here.
I though it would only be necessary if I had to specify from which file I would want to run the debugger but since here I am only attaching it makes me wonder.

Thanks for your work!

NB: I am new to emacs-lisp, if there would be any guidelines into how I should go myself in the code to understand how this works I would gladly do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions