Git Product home page Git Product logo

nvim-dap-cs's Introduction

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

nvim-dap-cs's People

Contributors

nicholasmata avatar

Stargazers

Lance Turbes avatar Guy Langston avatar Baby Don't Cry avatar Doug Slater avatar  avatar Piotr Żarczyński avatar  avatar

Watchers

Guy Langston avatar  avatar  avatar

nvim-dap-cs's Issues

Launch & Smart Attach not working on windows

Hi!
First of all, thanks a lot for this plugin. I can debug C# easily now and that brings me joy every day 😄

Only issue is that it doesn't work on windows because the find command you are using is different on bash than cmd or powershell

I got it fixed and was wondering if you would like for me to create a PR or I should keep my nasty windows commands away from your repo 😎

Thanks!

netcoredbg is such a pita for me trying to get things to work. Thanks for making this plugin :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.