Skip to content

Commit 2d724fd

Browse files
ArseniiCherniaevnerzhulart
authored andcommitted
Mute exception on step phase in the case of old version of protocol.
1 parent ccadee5 commit 2d724fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Mono.Debugging.Soft/SoftDebuggerSession.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,13 @@ void Step (StepDepth depth, StepSize size)
14421442
req.Filter |= StepFilter.DebuggerNonUserCode;
14431443
if (assemblyFilters != null && assemblyFilters.Count > 0)
14441444
req.AssemblyFilter = assemblyFilters;
1445-
req.Enabled = true;
1445+
try {
1446+
req.Enabled = true;
1447+
}
1448+
catch (NotSupportedException e) {
1449+
if (vm.Version.AtLeast (2, 19)) //catch NotSupportedException thrown by old version of protocol
1450+
throw e;
1451+
}
14461452
currentStepRequest = req;
14471453
OnResumed ();
14481454
vm.Resume ();

0 commit comments

Comments
 (0)