if (consoleView == null) {
throw new RuntimeException("KarmaConsoleView was expected!");
}
final KarmaServer karmaServer = consoleView.getKarmaExecutionSession().getKarmaServer();
if (karmaServer.areBrowsersReady()) {
final DebuggableWebBrowser debuggableWebBrowser =
new KarmaDebugBrowserSelector(karmaServer.getCapturedBrowsers(), environment).selectDebugEngine();
return prepareDebugger(environment.getProject(), debuggableWebBrowser, new RunProfileStarter() {
@Nullable
@Override