void (@NotNull Project project) { XAttachDebugger debugger = getSelectedDebugger(); try { debugger.attachDebugSession(project, myHost, myInfo); } catch (ExecutionException e) { final String message = XDebuggerBundle.message("xdebugger.attach.pid", myInfo.getPid()); ExecutionUtil.handleExecutionError(project, ToolWindowId.DEBUG, message, e); } }