Skip to content

add ExceptionOptions; fixes #64 - #88

Merged
Andre Weinand (weinand) merged 1 commit into
masterfrom
andre/exception_config
Dec 1, 2016
Merged

Andre Weinand (weinand) merged 1 commit into
masterfrom
andre/exception_config

Conversation

@weinand

Copy link
Copy Markdown
Contributor

A proposal based on the 'glob pattern' approach.

@gregg-miskelly

Copy link
Copy Markdown
Member

To give an example to make sure I understand, if I wanted to break on all .NET exceptions user-unhanded, exception for System.InvalidOperationException which I want to always break on, I would get something like this?

{
  "exceptionOptions": [
    {
      "path": [
        {
          "names": [ ".NET Exceptions" ]
        }
      ],
      "breakMode": "userUnhandled"
    },
    {
      "path": [
        {
          "names": [ ".NET Exceptions", "System.InvalidOperationException" ]
        }
      ],
      "breakMode": "always"
    }
  ]
}

@weinand

Copy link
Copy Markdown
Contributor Author

Gregg Miskelly (@gregg-miskelly) the "names" array in your example is an alternation. So it would mean "always break on all exception under '.NET Exceptions' and 'System.InvalidOperationException'".

What you want is:

{
  "exceptionOptions": [
    {
      "path": [
        {
          "names": [ ".NET Exceptions" ]
        }
      ],
      "breakMode": "userUnhandled"
    },
    {
      "path": [
        {
          "names": [ ".NET Exceptions" ]
        },
        {
          "names": [ "System.InvalidOperationException" ]
        }
      ],
      "breakMode": "always"
    }
  ]
}

@weinand
Andre Weinand (weinand) merged commit 0299af6 into master Dec 1, 2016
@weinand
Andre Weinand (weinand) deleted the andre/exception_config branch December 1, 2016 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants