}
else {
final AsyncResult<RunProfileStarter> result = new AsyncResult<RunProfileStarter>();
JavaScriptDebugEngine debugEngine = debuggableWebBrowser.getDebugEngine();
WebBrowser browser = debuggableWebBrowser.getWebBrowser();
debugEngine.prepareDebugger(project, browser).notifyWhenRejected(result).doWhenDone(new Runnable() {
@Override
public void run() {
result.setDone(starter);
}
});