@NotNull final AsyncResult<RunProfileStarter> result,
@NotNull final JstdServer server,
@NotNull final JstdRunSettings runSettings) {</BUG>
if (server.isReadyForRunningTests()) {
final JstdDebugBrowserInfo debugBrowserInfo = JstdDebugBrowserInfo.build(server, runSettings);
<BUG>if (debugBrowserInfo != null) {
ActionCallback prepareDebuggerCallback = debugBrowserInfo.getDebugEngine().prepareDebugger(project, debugBrowserInfo.getBrowser());
prepareDebuggerCallback.notifyWhenRejected(result).doWhenDone(new Runnable() {</BUG>
@Override
<BUG>public void run() {
result.setDone(new MyDebugStarter(server, debugBrowserInfo));
</BUG>
}

else {
return Promise.<RunProfileStarter>resolve(new RunProfileStarter() {
@Nullable
@Override
public RunContentDescriptor execute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
throw new ExecutionException("Please capture Chrome or Firefox and try again");
}
