5 |
5 |
6 """ |
6 """ |
7 Module implementing the debug server. |
7 Module implementing the debug server. |
8 """ |
8 """ |
9 |
9 |
10 import sys |
|
11 import os |
10 import os |
12 import time |
|
13 import signal |
|
14 |
11 |
15 from PyQt4.QtCore import * |
12 from PyQt4.QtCore import * |
16 from PyQt4.QtGui import QMessageBox |
13 from PyQt4.QtGui import QMessageBox |
17 from PyQt4.QtNetwork import QTcpServer, QHostAddress, QHostInfo |
14 from PyQt4.QtNetwork import QTcpServer, QHostAddress, QHostInfo |
18 |
15 |
277 |
274 |
278 @param clType type of client to be started (string) |
275 @param clType type of client to be started (string) |
279 """ |
276 """ |
280 if clType is not None and clType in self.getSupportedLanguages(): |
277 if clType is not None and clType in self.getSupportedLanguages(): |
281 self.clientType = clType |
278 self.clientType = clType |
282 ok = Preferences.Prefs.settings.setValue('DebugClient/Type', |
279 Preferences.Prefs.settings.setValue('DebugClient/Type', |
283 self.clientType) |
280 self.clientType) |
284 |
281 |
285 def startClient(self, unplanned = True, clType = None, forProject = False, |
282 def startClient(self, unplanned = True, clType = None, forProject = False, |
286 runInConsole = False): |
283 runInConsole = False): |
287 """ |
284 """ |
458 special = self.watchSpecialCreated |
455 special = self.watchSpecialCreated |
459 elif cond.endswith(" ??changed??"): |
456 elif cond.endswith(" ??changed??"): |
460 cond, special = cond.split() |
457 cond, special = cond.split() |
461 special = self.watchSpecialChanged |
458 special = self.watchSpecialChanged |
462 else: |
459 else: |
463 return cond, "" |
460 cond = cond |
|
461 special = "" |
|
462 |
|
463 return cond, special |
464 |
464 |
465 def __clientClearWatchPoint(self, condition): |
465 def __clientClearWatchPoint(self, condition): |
466 """ |
466 """ |
467 Private slot to handle the clientClearWatch signal. |
467 Private slot to handle the clientClearWatch signal. |
468 |
468 |