12 import socket |
12 import socket |
13 |
13 |
14 from PyQt4.QtCore import * |
14 from PyQt4.QtCore import * |
15 from PyQt4.QtGui import QMessageBox |
15 from PyQt4.QtGui import QMessageBox |
16 |
16 |
17 from E4Gui.E4Application import e4App |
17 from E4Gui.E4Application import e5App |
18 |
18 |
19 from .DebugProtocol import * |
19 from .DebugProtocol import * |
20 from . import DebugClientCapabilities |
20 from . import DebugClientCapabilities |
21 |
21 |
22 import Preferences |
22 import Preferences |
228 @param runInConsole flag indicating to start the debugger in a |
228 @param runInConsole flag indicating to start the debugger in a |
229 console window (boolean) |
229 console window (boolean) |
230 @return pid of the client process (integer) and a flag to indicate |
230 @return pid of the client process (integer) and a flag to indicate |
231 a network connection (boolean) |
231 a network connection (boolean) |
232 """ |
232 """ |
233 project = e4App().getObject("Project") |
233 project = e5App().getObject("Project") |
234 if not project.isDebugPropertiesLoaded(): |
234 if not project.isDebugPropertiesLoaded(): |
235 return None, self.__isNetworked |
235 return None, self.__isNetworked |
236 |
236 |
237 # start debugger with project specific settings |
237 # start debugger with project specific settings |
238 interpreter = project.getDebugProperty("INTERPRETER") |
238 interpreter = project.getDebugProperty("INTERPRETER") |