Skip to content

Commit b9207fd

Browse files
committed
Added includeSubclasses to AddCatchpoint
1 parent fd19f89 commit b9207fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Mono.Debugging/Mono.Debugging.Client/BreakpointStore.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,19 @@ public bool Add (BreakEvent bp)
142142
}
143143

144144
public Catchpoint AddCatchpoint (string exceptionName)
145+
{
146+
return AddCatchpoint (exceptionName, true);
147+
}
148+
149+
public Catchpoint AddCatchpoint (string exceptionName, bool includeSubclasses)
145150
{
146151
if (exceptionName == null)
147152
throw new ArgumentNullException ("exceptionName");
148153

149154
if (IsReadOnly)
150155
return null;
151156

152-
var cp = new Catchpoint (exceptionName);
157+
var cp = new Catchpoint (exceptionName, includeSubclasses);
153158
Add (cp);
154159

155160
return cp;

0 commit comments

Comments
 (0)