Skip to content

Commit 2321ca1

Browse files
authored
Merge pull request #78 from joj/master
Surfacing IncludeSubclasses for Catchpoints
2 parents fd19f89 + b9207fd commit 2321ca1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
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)