Debugger/DebugServer.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3021
801289962f4e
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
105 reported a skipped test 105 reported a skipped test
106 @signal utTestFailedExpected(testname, exc_info, id) emitted after the 106 @signal utTestFailedExpected(testname, exc_info, id) emitted after the
107 client reported an expected test failure 107 client reported an expected test failure
108 @signal utTestSucceededUnexpected(testname, id) emitted after the client 108 @signal utTestSucceededUnexpected(testname, id) emitted after the client
109 reported an unexpected test success 109 reported an unexpected test success
110 @signal callTraceInfo(isCall, fromFile, fromLine, fromFunction, toFile, 110 @signal callTraceInfo emitted after the client reported the call trace
111 toLine, toFunction) emitted after the client reported the call trace 111 data (isCall, fromFile, fromLine, fromFunction, toFile, toLine,
112 data 112 toFunction)
113 """ 113 """
114 clientClearBreak = pyqtSignal(str, int) 114 clientClearBreak = pyqtSignal(str, int)
115 clientClearWatch = pyqtSignal(str) 115 clientClearWatch = pyqtSignal(str)
116 clientGone = pyqtSignal(bool) 116 clientGone = pyqtSignal(bool)
117 clientProcessStdout = pyqtSignal(str) 117 clientProcessStdout = pyqtSignal(str)
368 368
369 @param clType type of client to be started (string) 369 @param clType type of client to be started (string)
370 """ 370 """
371 if clType is not None and clType in self.getSupportedLanguages(): 371 if clType is not None and clType in self.getSupportedLanguages():
372 self.clientType = clType 372 self.clientType = clType
373 Preferences.Prefs.settings.setValue('DebugClient/Type', 373 Preferences.Prefs.settings.setValue(
374 self.clientType) 374 'DebugClient/Type', self.clientType)
375 375
376 def startClient(self, unplanned=True, clType=None, forProject=False, 376 def startClient(self, unplanned=True, clType=None, forProject=False,
377 runInConsole=False): 377 runInConsole=False):
378 """ 378 """
379 Public method to start a debug client. 379 Public method to start a debug client.
649 """ 649 """
650 sock = self.nextPendingConnection() 650 sock = self.nextPendingConnection()
651 peerAddress = sock.peerAddress().toString() 651 peerAddress = sock.peerAddress().toString()
652 if peerAddress not in Preferences.getDebugger("AllowedHosts"): 652 if peerAddress not in Preferences.getDebugger("AllowedHosts"):
653 # the peer is not allowed to connect 653 # the peer is not allowed to connect
654 res = E5MessageBox.yesNo(None, 654 res = E5MessageBox.yesNo(
655 None,
655 self.trUtf8("Connection from illegal host"), 656 self.trUtf8("Connection from illegal host"),
656 self.trUtf8( 657 self.trUtf8(
657 """<p>A connection was attempted by the illegal host""" 658 """<p>A connection was attempted by the illegal host"""
658 """ <b>{0}</b>. Accept this connection?</p>""")\ 659 """ <b>{0}</b>. Accept this connection?</p>""")\
659 .format(peerAddress), 660 .format(peerAddress),
1339 @param fromFunction name of the originating function (string) 1340 @param fromFunction name of the originating function (string)
1340 @param toFile name of the target file (string) 1341 @param toFile name of the target file (string)
1341 @param toLine line number in the target file (string) 1342 @param toLine line number in the target file (string)
1342 @param toFunction name of the target function (string) 1343 @param toFunction name of the target function (string)
1343 """ 1344 """
1344 self.callTraceInfo.emit(isCall, fromFile, fromLine, fromFunction, 1345 self.callTraceInfo.emit(
1346 isCall, fromFile, fromLine, fromFunction,
1345 toFile, toLine, toFunction) 1347 toFile, toLine, toFunction)
1346 1348
1347 def clientUtPrepared(self, result, exceptionType, exceptionValue): 1349 def clientUtPrepared(self, result, exceptionType, exceptionValue):
1348 """ 1350 """
1349 Public method to process the client unittest prepared info. 1351 Public method to process the client unittest prepared info.

eric ide

mercurial