mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.47k stars 194 forks source link

Error when debugging c and rust files with codelldb #1055

Closed nefastuus closed 11 months ago

nefastuus commented 12 months ago

Debug adapter and debug configuration

Codelldb path

2023-10-12-121031_749x75_scrot

Codelldb adapter

2023-10-12-121012_437x199_scrot

Codellb configuration

2023-10-12-121018_649x183_scrot


The same error occurs when debugging rust files. My configuration uses rust-tools.

rust-tools configuration

2023-10-12-130111_933x790_scrot

2023-10-12-130148_801x307_scrot

Debug adapter version

No response

Steps to Reproduce

Peek 12-10-2023 12-41

Expected Result

Actual Result

[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1165 ]    "Starting debug adapter server executable"  {
  args = { "--port", "37203" },
  command = "/home/matheus/.local/share/nvim/mason/packages/codelldb/extension/adapter/codelldb"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1295 ]    "Debug adapter server executable started, listening on 37203"
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1299 ]    "Connecting to debug adapter"   {
  executable = {
    args = { "--port", "37203" },
    command = "/home/matheus/.local/share/nvim/mason/packages/codelldb/extension/adapter/codelldb"
  },
  port = 37203,
  type = "server"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1677 ]    "request"   {
  arguments = {
    adapterID = "nvim-dap",
    clientId = "neovim",
    clientname = "neovim",
    columnsStartAt1 = true,
    linesStartAt1 = true,
    locale = "pt_BR.UTF-8",
    pathFormat = "path",
    supportsProgressReporting = true,
    supportsRunInTerminalRequest = true,
    supportsStartDebuggingRequest = true,
    supportsVariableType = true
  },
  command = "initialize",
  seq = 0,
  type = "request"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:950 ] 2   {
  body = {
    exceptionBreakpointFilters = { {
        default = true,
        filter = "cpp_throw",
        label = "C++: on throw",
        supportsCondition = true
      }, {
        default = false,
        filter = "cpp_catch",
        label = "C++: on catch",
        supportsCondition = true
      } },
    supportTerminateDebuggee = true,
    supportsCancelRequest = true,
    supportsCompletionsRequest = true,
    supportsConditionalBreakpoints = true,
    supportsConfigurationDoneRequest = true,
    supportsDataBreakpoints = true,
    supportsDelayedStackTraceLoading = true,
    supportsDisassembleRequest = true,
    supportsEvaluateForHovers = true,
    supportsExceptionFilterOptions = true,
    supportsExceptionInfoRequest = true,
    supportsFunctionBreakpoints = true,
    supportsGotoTargetsRequest = true,
    supportsHitConditionalBreakpoints = true,
    supportsInstructionBreakpoints = true,
    supportsLogPoints = true,
    supportsReadMemoryRequest = true,
    supportsSetVariable = true,
    supportsSteppingGranularity = true,
    supportsWriteMemoryRequest = true
  },
  command = "initialize",
  request_seq = 0,
  seq = 1,
  success = true,
  type = "response"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1677 ]    "request"   {
  arguments = {
    cwd = "/home/matheus",
    name = "Launch file",
    program = "/home/matheus/teste",
    request = "launch",
    stopOnEntry = false,
    type = "codelldb"
  },
  command = "launch",
  seq = 1,
  type = "request"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:950 ] 2   {
  body = {
    category = "console",
    output = "Console is in 'commands' mode, prefix expressions with '?'.\n"
  },
  event = "output",
  seq = 2,
  type = "event"
}
[ DEBUG ] 2023-10-12T12:15:15Z-0300 ] ...heus/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:950 ] 2   {
  command = "",
  message = "unable to find executable for '/home/matheus/teste'",
  request_seq = 1,
  seq = 3,
  show_user = true,
  success = false,
  type = "response"
}

Message in console

2023-10-12-121932_971x60_scrot

mfussenegger commented 11 months ago

Read the error message?

message = "unable to find executable for '/home/matheus/teste'",