PythonDebugConsoleCommunication (Project project, PyDebugProcess debugProcess, PythonDebugLanguageConsoleView console, ProcessHandler processHandler, final XDebugSession session) { PythonConsoleView pythonConsoleView = console.getPydevConsoleView(); PythonDebugConsoleCommunication debugConsoleCommunication = new PythonDebugConsoleCommunication(project, debugProcess, pythonConsoleView); pythonConsoleView.setConsoleCommunication(debugConsoleCommunication); PydevDebugConsoleExecuteActionHandler consoleExecuteActionHandler = new PydevDebugConsoleExecuteActionHandler(console, processHandler, debugConsoleCommunication); PythonDebugConsoleCommunication pythonDebugConsoleCommunication = initDebugConsoleView(pythonConsoleView, consoleExecuteActionHandler, debugProcess, processHandler, debugConsoleCommunication, session); // We need to enable Debug Console one more time after adding the consoleExecuteActionHandler to the pythonConsoleView if (console.isEnabled()) { console.enableConsole(false); } return pythonDebugConsoleCommunication; }