Code Monkey home page Code Monkey logo

Comments (8)

kolpav avatar kolpav commented on August 18, 2024 1

@pocco81 Installation passed but I can't debug most probably because I don't know what I am doing its my first time using DAP. Are my assumptions correct?

You need to have mfussenegger/nvim-dap, Pocco81/DAPInstall.nvim and debugger of your choice installed.

Have this in your lua config which will load configs for installed debuggers maintained by this repo. Great for people who don't know what they are doing (me).

local dap_install = require("dap-install")
local dbg_list = require("dap-install.debuggers_list").debuggers

for debugger, _ in pairs(dbg_list) do
	dap_install.config(debugger, {})
end

Then run :lua require'dap'.continue() and you should be good right?

If thats the case I am getting

image

I was prompted to enter built .dll path which I think I entered correctly.

The minimal debug check should be easy to do even when you are not .net dev here are instructions if you ever wanted to do that.

  1. Download .net sdk
  2. Create hello world project dotnet new console -o DapDebugTest
  3. cd DapDebugTest and dotnet build to build debug dlls or dotnet run to restore (something like npm install) + build + run

With that being said feel free to ping me in the future with .net related stuff I'll be happy to help. This project is great it has same feel as https://github.com/kabouzeid/nvim-lspinstall nobody wants to fiddle with setting lsp or debug configs when vscode from which many people are moving to nvim has it set up by default or one "install" click away from their extension store. Nvim is getting closer to same experience thanks to projects as yours which are super valuable but at the same time exhausting to maintain as one name change in release file breaks whole debugger install with no fault of yours so you are more likely to collect issues than PRs so thanks for this project 👍

from dap-buddy.nvim.

kolpav avatar kolpav commented on August 18, 2024 1

@pocco81 Just letting you know that installation now indeed passes on macos.

from dap-buddy.nvim.

pocco81 avatar pocco81 commented on August 18, 2024

Fixed! Btw, I don't do any .NET dev so if you could report back to see if the default config works it'd be awesome!

from dap-buddy.nvim.

pocco81 avatar pocco81 commented on August 18, 2024

Are my assumptions correct?

Yep, you did everything correctly.

If thats the case I am getting

My bad, sorry! this was caused because I passed the wrong param to the degubber ("file" instead of ${file}), just fixed it. Could you test it and report back again so that we can mark it as "tested" in the debuggers list?

Edit: so after reading about this debugger over at nvim-dap's wiki it seems like they just pass the string "file" as a parameter to the debugger:

image

What I'm not sure about it whether we should pass the current file to that or the string "file" itself. But again, if we were supposed to pass the file itself then ${file} should work just fine as mentioned in the documentation.

Could you test it? 👍

Nvim is getting closer to same experience thanks to projects as yours which are super valuable

Thanks man! I really appreciate it :) Yeah it's hard to maintain/develop projects like this. Sure the core is done and can be improved over time, but without the debuggers themselves it's kinda useless and since we are talking about debuggers I can't test every single one them and small errors like this one above (passing a wrong param in the debugger's config) can be overlooked.

I'm currently working on MerelyFmt.nvim btw, which has the goal of making formatter/formatting code accessible and without too much hassle. Similar to how DAPInstall.nvim makes debuggers/debugging more accessible.

from dap-buddy.nvim.

kolpav avatar kolpav commented on August 18, 2024

@pocco81 I am on mac and it seems linux version is hardcoded in download link and for latest version of netcoredbg there isn't even mac version for some reason while older releases have it so I downloaded release with mac version still present and extracted it into /Users/kolpav/.local/share/nvim/dapinstall/dnetcs_dbg/netcoredbg on first run I also needed to allow it in "Security & Privacy" after that it seems to be working. MerelyFmt.nvim looks really cool good luck with it.

from dap-buddy.nvim.

pocco81 avatar pocco81 commented on August 18, 2024

Could you pass me the commands you used to install the debugger?

I also needed to allow it in "Security & Privacy" after that it seems to be working

Sadly I think that's out of the scope of DAPInstall.nvim.

from dap-buddy.nvim.

kolpav avatar kolpav commented on August 18, 2024

There are no commands it was done manually I downloaded 1.2.0-786 for mac and put in place where DAPInstall expects to find runnable netcoredbg.

Sadly I think that's out of the scope of DAPInstall.nvim.

Sure it wasn't meant as request I just wanted to provide all the steps I needed to take.

from dap-buddy.nvim.

pocco81 avatar pocco81 commented on August 18, 2024

Okay, DAPInstall should now be able to detect the OS accordingly and fetch the appropriate archive 👍

from dap-buddy.nvim.

Related Issues (20)

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.