Skip to content

[Bug]: netcoredbg exception breakpoints are not working #830

@mikeboiko

Description

@mikeboiko

Is your feature request related to a problem? Please describe.
I can't get exception breakpoints to work with C# netcoredbg.
Regular breakpoints are working just fine.

Describe the solution you'd like
When an exception occurs, I would like vimspector to break on the offending line.

Describe alternatives you've considered

Additional context
This is my .vimspector.json config file:

{
  "configurations": {
    "local-test": {
      "adapter": "netcoredbg",
      "variables": {
        "PID": {
          "shell": "bash -c 'pgrep dotnet | tail -n 1'"
        }
      },
      "default": true,
      "configuration": {
        "request": "attach",
        "processId": "${PID}"
      },
      "breakpoints": {
        "exception": {
          "user-unhandled": "Y"
        }
      }
    }
  }
}

When I run :VimspectorDebugInfo, I get:

--------------------------------------------------------------------------------
Server Capabilities: 
--------------------------------------------------------------------------------
{
  "exceptionBreakpointFilters": [
    {
      "filter": "user-unhandled",
      "label": "user-unhandled"
    },
    {
      "filter": "all",
      "label": "all"
    }
  ],
  "supportTerminateDebuggee": true,
  "supportsCancelRequest": true,
  "supportsConditionalBreakpoints": true,
  "supportsConfigurationDoneRequest": true,
  "supportsExceptionFilterOptions": true,
  "supportsExceptionInfoRequest": true,
  "supportsExceptionOptions": false,
  "supportsFunctionBreakpoints": true,
  "supportsSetExpression": true,
  "supportsSetVariable": true,
  "supportsTerminateRequest": true
}
--------------------------------------------------------------------------------
Line Breakpoints: 
--------------------------------------------------------------------------------
{}
--------------------------------------------------------------------------------
Func Breakpoints: 
--------------------------------------------------------------------------------
[]
--------------------------------------------------------------------------------
Ex Breakpoints: 
--------------------------------------------------------------------------------
{
  "filters": []
}
--------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity 2The plugin or a workflow is inconvenient or occasionally brokenbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions