generated from ellisonleao/nvim-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
Description
Did you check docs and existing issues?
- I have read all the plugin docs
- I have searched the existing issues
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.11.0
Operating system/version
macOS 15.3.2
Describe the bug
When I start a debugging session, I can select variables to watch as usual and their values are correctly displayed. However, when I begin to step through the code, the variables' values are replaced with the following python error:
Traceback (most recent call last):
File "/Users/myusername/.local/share/nvim/mason/packages/codelldb/extension/adapter/scripts/codelldb/interface.pv". line 204, in evaluate_as_sbvalue
value = evaluate_in_context(pycode, exec_context, eval_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^There's definitely more to the error but I can't see it as you can see in this picture (I maxxed my display's resolution to get this much) and I can't figure out any way to see the rest of it
If there's a way to get the full error I'll happily get it for you.
Steps To Reproduce
- Use the following minimal config
-- repro.lua
local root = vim.fn.fnamemodify("./.repro", ":p")
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)
local plugins = {
"folke/LazyVim",
{
"mfussenegger/nvim-dap",
dependencies = {
{
"igorlfs/nvim-dap-view",
opts = {},
},
},
config = function()
local dap = require("dap")
dap.adapters.codelldb = {
type = "executable",
command = "codelldb",
}
dap.configurations.c = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
end,
},
{
"williamboman/mason.nvim",
opts = {},
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})- Open Mason and install
codelldb - Open a C program and compile with debug info
- Set a breakpoint and start the debugger
- Watch a variable
- Step through the program
- See the error in watch window
Here's a video example:
error.mp4
Expected Behavior
The variable's value should continue to be displayed/updated with no error.
