Issue 71017
Summary Nvim-dap lldb-vscode terminate called without an active exception
Labels new issue
Assignees
Reporter jasuramme
    Expected:
Dap debug to work
Observed:
lldb-vscode exits and in log I see:
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
[dap.log](https://github.com/llvm/llvm-project/files/13234391/dap.log)

Reproduce steps:

1. Running nvim-dap with the following config:

local dap = require('dap')
dap.adapters.lldb = {
  type = 'executable',
 command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path
  name = 'lldb'
}

local dap = require('dap')
dap.configurations.cpp = {
  {
    name = 'Launch',
    type = 'lldb',
    request = 'launch',
    program = function()
      return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
    end,
    cwd = vim.fn.getcwd(),
 stopOnEntry = true,
    args = {},
 },
}

2. g++ ./main.cpp -g
3. nvim
4. :e main.cpp
5. :lua require'dap'.continue()
Path to executable: /mnt/sda5/workspace/nvim-training/bug/a.out
6. :lua require'dap'.continue()

Project and configs are in the attachment below
[files.zip](https://github.com/llvm/llvm-project/files/13234400/files.zip)


System info:
Nvim version: 
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1697887905

Nvim-dap version: (commit) 79dbc70

lldb version: 16.0.6 installed via pacman (archlinux pkg version: 16.0.6-1)

Operating system: Arch Linux  Linux kernel 6.5.9-arch2-1 
Shell: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz, 1 sockets, 2 cores, 4 threads
GPU: Intel Corporation HD Graphics 620 (rev 07), 256M RAM
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to