Skip to content

Commit

Permalink
chore: ⚰️ Remove exceptionBreakpointFilter functionality
Browse files Browse the repository at this point in the history
The DAP Server acts like it supports exceptionBreakpointFilters, but this support can only be made from inside the debugging backend, where we don't want to implement this feature at the moment, as it would only bloat code with minimal benefits
  • Loading branch information
DRovara committed Aug 9, 2024
1 parent fa4a10a commit 7a57dab
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions src/mqt/debug/dap/messages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_default_capabilities() -> dict[str, Any]:
"supportsHitConditionalBreakpoints": False,
"supportsEvaluateForHovers": False,
"supportsExceptionInfoRequest": True,
"exceptionBreakpointFilters": get_exception_filters(),
"exceptionBreakpointFilters": [],
"supportsStepBack": True,
"supportsSetVariable": False,
"supportsRestartFrame": True,
Expand All @@ -28,37 +28,3 @@ def get_default_capabilities() -> dict[str, Any]:
"supportsDelayedStackTraceLoading": False,
"supportsVariablePaging": True,
}


def get_exception_filters() -> list[dict[str, Any]]:
"""Returns the exception filters supported by DAP server.
Returns:
list[dict[str, Any]]: The exception filters of the DAP server.
"""
return [
{
"filter": "all",
"label": "All Assertions",
"description": "Filters for all assertion failures.",
"default": True,
},
{
"filter": "ent",
"label": "Entanglement Assertions",
"description": "Filters for entanglement assertion failures.",
"default": False,
},
{
"filter": "sup",
"label": "Superposition Assertions",
"description": "Filters for superposition assertion failures.",
"default": False,
},
{
"filter": "eq",
"label": "Equality Assertions",
"description": "Filters for equality assertion failures.",
"default": False,
},
]

0 comments on commit 7a57dab

Please sign in to comment.