Debugger/DebugServer.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
6:52e8c820d0dd 7:c679fb30c8f3
124 124
125 self.debuggerInterface = None 125 self.debuggerInterface = None
126 self.debugging = False 126 self.debugging = False
127 self.clientProcess = None 127 self.clientProcess = None
128 self.clientType = \ 128 self.clientType = \
129 Preferences.Prefs.settings.value('DebugClient/Type', 129 Preferences.Prefs.settings.value('DebugClient/Type', 'Python')
130 QVariant('Python')).toString()
131 self.lastClientType = '' 130 self.lastClientType = ''
132 self.__autoClearShell = False 131 self.__autoClearShell = False
133 132
134 self.connect(self, SIGNAL("clientClearBreak"), self.__clientClearBreakPoint) 133 self.connect(self, SIGNAL("clientClearBreak"), self.__clientClearBreakPoint)
135 self.connect(self, SIGNAL("clientClearWatch"), self.__clientClearWatchPoint) 134 self.connect(self, SIGNAL("clientClearWatch"), self.__clientClearWatchPoint)
279 @param clType type of client to be started (string) 278 @param clType type of client to be started (string)
280 """ 279 """
281 if clType is not None and clType in self.getSupportedLanguages(): 280 if clType is not None and clType in self.getSupportedLanguages():
282 self.clientType = clType 281 self.clientType = clType
283 ok = Preferences.Prefs.settings.setValue('DebugClient/Type', 282 ok = Preferences.Prefs.settings.setValue('DebugClient/Type',
284 QVariant(self.clientType)) 283 self.clientType)
285 284
286 def startClient(self, unplanned = True, clType = None, forProject = False, 285 def startClient(self, unplanned = True, clType = None, forProject = False,
287 runInConsole = False): 286 runInConsole = False):
288 """ 287 """
289 Public method to start a debug client. 288 Public method to start a debug client.

eric ide

mercurial