Skip to content

I hope it can support nvim-dap #130

@gmg137

Description

@gmg137

With the following configuration, nvim-dap fails to run and exits directly

            dap.adapters["bug-stalker"] = {
                type = "executable",
                command = "bs",
                args = { "--dap" }
            }

            dap.configurations.rust = {
                {
                    name = "Run program",
                    type = "bug-stalker",
                    request = "launch",
                    program = function()
                        vim.fn.system("cargo build")
                        return vim.fn.input('Execution file path: ',
                            vim.fn.getcwd() .. '/target/debug/${workspaceFolderBasename}',
                            'file')
                    end,
                    cwd = "${workspaceFolder}",
                }
         }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions