Anyone figured out DAP for golang?

This page summarizes the projects mentioned and recommended in the original post on /r/lunarvim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • delve

    Delve is a debugger for the Go programming language.

  • dap.adapters.go = function(callback, _) local stdout = vim.loop.new_pipe(false) local handle local pid_or_err local port = 38697 local opts = { stdio = { nil, stdout }, args = { "dap", "-l", "127.0.0.1:" .. port }, detached = true, } handle, pid_or_err = vim.loop.spawn("dlv", opts, function(code) stdout:close() handle:close() if code ~= 0 then print("dlv exited with code", code) end end) assert(handle, "Error running dlv: " .. tostring(pid_or_err)) stdout:read_start(function(err, chunk) assert(not err, err) if chunk then vim.schedule(function() require("dap.repl").append(chunk) end) end end) -- Wait for delve to start vim.defer_fn(function() callback { type = "server", host = "127.0.0.1", port = port } end, 100) end -- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md dap.configurations.go = { { type = "go", name = "Debug", request = "launch", program = "${file}", }, { type = "go", name = "Debug test", -- configuration for debugging test files request = "launch", mode = "test", program = "${file}", }, -- works with go.mod packages and sub packages { type = "go", name = "Debug test (go.mod)", request = "launch", mode = "test", program = "./${relativeFileDirname}", }, } ```

  • nvim-dap

    Debug Adapter Protocol client implementation for Neovim

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Is there a neovim config with preconfigured debugger?

    6 projects | /r/neovim | 4 Feb 2023
  • How to debug like a PRO using Neovim 🔥

    4 projects | dev.to | 5 Oct 2022
  • Can you get better dapui varibles?

    1 project | /r/neovim | 6 Dec 2023
  • A Practical Guide to fzf: Vim Integration

    2 projects | /r/commandline | 29 Nov 2023
  • Delve v1.21.2 is out now

    1 project | /r/golang | 1 Nov 2023