An extension for nvim-dap providing adapter and configurations for launching .NET Core debugger (netcoredbg).
- Launch a .NET Core project
- Attach to a .NET Core process
- Smart attach to a .NET Core process
- Neovim
- nvim-dap - DAP client for Neovim
- netcoredbg - .NET Core debugger
- Install like any other neovim plugin:
- If using vim-plug:
Plug 'nicholasmata/nvim-dap-cs'
- If using packer.nvim:
use 'nicholasmata/nvim-dap-cs'
- If using lazy.nvim:
{ 'nicholasmata/nvim-dap-cs', dependencies = { 'mfussenegger/nvim-dap' } }
- If using vim-plug:
Call the setup function in your init.vim
to register the adapter and the configurations:
require('dap-cs').setup()
It is possible to customize nvim-dap-cs by passing a config table in the setup function.
The example below shows all the possible configurations:
require('dap-cs').setup(
-- Additional dap configurations can be added.
-- dap_configurations accepts a list of tables where each entry
-- represents a dap configuration. For more details do:
-- :help dap-configuration
dap_configurations = {
{
-- Must be "coreclr" or it will be ignored by the plugin
type = "coreclr",
name = "Attach remote",
mode = "remote",
request = "attach",
},
},
netcoredbg = {
-- the path to the executable netcoredbg which will be used for debugging.
-- by default, this is the "netcoredbg" executable on your PATH.
path = "netcoredbg"
}
)