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
How do I configure go dap? I am using the default configuration.
The following exception is thrown at startup:
Error on launch failed to continue: "{e}"
This is my configuration file, I don't know how to configure the path, can you give me a configuration template?
-- DAPInstall.lua
local dap = require("dap")
local dapui = require("dapui")
local dap_install = require("dap-install")
local dap_table = {
python = require("debug.python"),
go = require("debug.go")
}
require("nvim-dap-virtual-text").setup()
dapui.setup(
{
sidebar = {
position = "right"
}
}
)
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
for dap_name, dap_options in pairs(dap_table) do
dap_install.config(
dap_name,
dap_options
)
end
require("basic.keybinds").debug_adapter_protocol()
-- debug/go.lua
return {
{
adapters = {
type = "executable",
command = "node",
-- Is it the problem here?
args = {os.getenv("HOME") .. "/dev/golang/vscode-go/dist/debugAdapter.js"}
},
configurations = {
type = "go",
name = "Debug",
request = "launch",
showLog = true,
program = "${file}",
-- Is it the problem here?
dlvToolPath = vim.fn.exepath("dlv") -- Adjust to where delve is installed
}
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How do I configure go dap? I am using the default configuration.
The following exception is thrown at startup:
This is my configuration file, I don't know how to configure the path, can you give me a configuration template?
Beta Was this translation helpful? Give feedback.
All reactions