protected async Task<bool> SafelyExecuteCommandWithoutResume(Func<Task> commandAction)
{
var result = false;
if (CurrentState == DebuggerState.Running)
{
StoppedEventIsEnabled = false;
result = await PauseAsync();
StoppedEventIsEnabled = true;
}
await commandAction();
return result;
}