mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.1k stars 179 forks source link

Unable to attach to process using netcoredbg #1142

Closed rudiejd closed 5 months ago

rudiejd commented 5 months ago

Debug adapter definition and debug configuration

dap.adapters.netcoredbg = {
  type = 'executable',
  command = 'netcoredbg',
  args = { '--interpreter=vscode' },
}

dap.configurations.cs = {
  {
    type = 'netcoredbg',
    name = 'Attach - netcoredbg',
    request = 'attach',
    processId = require('dap.utils').pick_process
  },
}

Debug adapter version

3.0.0-1012

Steps to Reproduce

  1. Use the attach configuration
  2. Pick any process
  3. Observe the error

Expected Result

Should attach to process and begin debugging

Actual Result

Error on attach: can't parse: [json.exception.out_of_range.403] key 'processId' not found

rudiejd commented 5 months ago

This looks similar to https://github.com/mfussenegger/nvim-dap/issues/356

If I can figure out a configuration for C# that avoids this issue, I'll contribute it to the server configurations list

mfussenegger commented 5 months ago

Closing as duplicate of https://github.com/mfussenegger/nvim-dap/issues/356 - and not a client issue.