Skip to content

An extension for nvim-dap providing configurations for launching .NET Core debugger (netcoredbg)

Notifications You must be signed in to change notification settings

NicholasMata/nvim-dap-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-dap-cs

An extension for nvim-dap providing adapter and configurations for launching .NET Core debugger (netcoredbg).

Configuration Selection Screenshot

Features

  • Launch a .NET Core project
  • Attach to a .NET Core process
  • Smart attach to a .NET Core process

Requirements

Installation

  • 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' } }

Usage

Register the plugin

Call the setup function in your init.vim to register the adapter and the configurations:

require('dap-cs').setup()

Configuring

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" 
  }
)

About

An extension for nvim-dap providing configurations for launching .NET Core debugger (netcoredbg)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages