DAP documentation required, and is anybody using dap with Helix? #9269
Replies: 6 comments 2 replies
|
Did you ever find an answer as I'm experiencing the same issue? |
|
I think you might be somewhat confused here. [[language]]
name = "javascript"
[language.debugger]
name = "vscode-js-debug"
transport = "tcp"
command = "node"
args = [ "~/.local/libexec/vscode-js-debug/src/vsDebugServer.js" ]
port-arg = [ "{}" ]
[[language.debugger.templates]]
name = "attach"
request = "attach"
completion = [ "pid" ]
args = { mode = "local", processId = "{0}" }
[[language.debugger.templates]]
name = "source"
request = "launch"
completion = [ { name = "main", completion = "filename", default = "index.js" } ]
args = { program = "{0}" }Note, however, that recent versions of |
|
Okay, it seems like I almost have Deno DAP working with Helix. The problem I'm running into is that Deno listens on a websocket with a path as a part of the URI, which I suspect Helix does not pick up on, so it fails to connect. Here's the config I have so far, collected and adjusted from various places: [[language]]
name = "typescript"
formatter = { command = "prettier", args = ["--parser", "typescript"] }
file-types = ["ts", "tsx"]
language-servers = ["deno-lsp"]
roots = ["deno.json", "package.json", "tsconfig.json"]
# auto-format = true
[language-server.deno-lsp]
command = "deno"
args = ["lsp"]
[language-server.deno-lsp.config.deno]
enable = true
# unstable = true
suggest.imports.hosts = { "https://deno.land" = true }
[language-server.deno-lsp.config.deno.javascript.inlayHints]
parameterNames.enabled = "all"
parameterTypes.enabled = true
variableTypes.enabled = true
propertyDeclarationTypes.enabled = true
functionLikeReturnTypes.enabled = true
enumMemberValues.enabled = true
[language-server.deno-lsp.config.deno.typescript.inlayHints]
parameterNames.enabled = "all"
parameterTypes.enabled = true
variableTypes.enabled = true
propertyDeclarationTypes.enabled = true
functionLikeReturnTypes.enabled = true
enumMemberValues.enabled = true
[language.debugger]
name = "deno-debug"
command = "deno"
args = ["repl", "-A"]
port-arg = "--inspect=127.0.0.1:{}"
transport = "tcp"
[[language.debugger.templates]]
name = "Launch Deno Script"
request = "launch"
completion = [{ name = "main", completion = "filename", default = "src/index.ts" }]
args = { address = "127.0.0.1", program = "{0}" } |
|
This LSP and DAP config in [[language]]
name = "typescript"
formatter = { command = "prettier", args = ["--parser", "typescript"] }
file-types = ["ts", "tsx"]
roots = ["package.json"]
[language.debugger]
name = "node-debug"
command = "node"
port-arg = "{} 127.0.0.1"
args = ["/home/andrew/.local/lib/js-debug/src/dapDebugServer.js"]
transport = "tcp"
[[language.debugger.templates]]
name = "Launch Node.js Script"
request = "launch"
completion = [{ name = "main", completion = "filename", default = "src/index.ts" }]
args = { program = "{0}", address = "127.0.0.1", type = "pwa-node" }I had to install TypeScript npm install typescript@6.0.3 typescript-language-server --global |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have just spend an entire day trying to figure out how to use debug with Helix ... still no success.
I am trying to configure https://github.com/microsoft/vscode-js-debug so that i can debug Deno programs.
This is what I have so far:
it returns request 0 timed out when I do
ctrl g land then select "source".I have managed to start the dap in a separate terminal and use
:debug-remote 127.0.0.1:8123and it would connect, but the dap would respond with config unknown or something like that every time in the terminal. I have tried changing everything that I could find. I have tried changing to "tcp", but it complains about incorrect transport...Can somebody help with this?
What are the available options and what do they do and what values can I enter and why. So much unknown.
This is my reference:
All reactions