eric6/Debugger/DebugServer.py

branch
multi_processing
changeset 7377
cc920e534ac0
parent 7374
5401ae8ddaa1
child 7379
72a72fd56494
equal deleted inserted replaced
7376:21df384d6150 7377:cc920e534ac0
42 @signal clientProcessStderr(str) emitted after the client has sent some 42 @signal clientProcessStderr(str) emitted after the client has sent some
43 output via stderr 43 output via stderr
44 @signal clientOutput(str) emitted after the client has sent some output 44 @signal clientOutput(str) emitted after the client has sent some output
45 @signal clientRawInputSent() emitted after the data was sent to the 45 @signal clientRawInputSent() emitted after the data was sent to the
46 debug client 46 debug client
47 @signal clientLine(filename, lineno, forStack) emitted after the 47 @signal clientLine(filename, lineno, debuggerId, forStack) emitted after
48 debug client has executed a line of code 48 the debug client has executed a line of code
49 @signal clientStack(stack) emitted after the debug client has executed a 49 @signal clientStack(stack, debuggerId) emitted after the debug client has
50 line of code 50 executed a line of code
51 @signal clientThreadList(currentId, threadList) emitted after a thread list 51 @signal clientThreadList(currentId, threadList, debuggerId) emitted after
52 has been received 52 a thread list has been received
53 @signal clientThreadSet() emitted after the client has acknowledged the 53 @signal clientThreadSet() emitted after the client has acknowledged the
54 change of the current thread 54 change of the current thread
55 @signal clientVariables(scope, variables) emitted after a variables dump 55 @signal clientVariables(scope, variables) emitted after a variables dump
56 has been received 56 has been received
57 @signal clientVariable(scope, variables) emitted after a dump for one class 57 @signal clientVariable(scope, variables) emitted after a dump for one class
122 clientGone = pyqtSignal(bool) 122 clientGone = pyqtSignal(bool)
123 clientProcessStdout = pyqtSignal(str) 123 clientProcessStdout = pyqtSignal(str)
124 clientProcessStderr = pyqtSignal(str) 124 clientProcessStderr = pyqtSignal(str)
125 clientRawInputSent = pyqtSignal() 125 clientRawInputSent = pyqtSignal()
126 clientOutput = pyqtSignal(str) 126 clientOutput = pyqtSignal(str)
127 clientLine = pyqtSignal(str, int, bool) 127 clientLine = pyqtSignal(str, int, str, bool)
128 clientStack = pyqtSignal(list) 128 clientStack = pyqtSignal(list, str)
129 clientThreadList = pyqtSignal('PyQt_PyObject', list) 129 clientThreadList = pyqtSignal(int, list, str)
130 clientThreadSet = pyqtSignal() 130 clientThreadSet = pyqtSignal()
131 clientVariables = pyqtSignal(int, list) 131 clientVariables = pyqtSignal(int, list)
132 clientVariable = pyqtSignal(int, list) 132 clientVariable = pyqtSignal(int, list)
133 clientStatement = pyqtSignal(bool) 133 clientStatement = pyqtSignal(bool)
134 clientException = pyqtSignal(str, str, list) 134 clientException = pyqtSignal(str, str, list)
1460 """ 1460 """
1461 public method to stop a unittest run. 1461 public method to stop a unittest run.
1462 """ 1462 """
1463 self.debuggerInterface.remoteUTStop() 1463 self.debuggerInterface.remoteUTStop()
1464 1464
1465 def signalClientOutput(self, line): 1465 def signalClientOutput(self, line, debuggerId):
1466 """ 1466 """
1467 Public method to process a line of client output. 1467 Public method to process a line of client output.
1468 1468
1469 @param line client output (string) 1469 @param line client output
1470 """ 1470 @type str
1471 self.clientOutput.emit(line) 1471 @param debuggerId ID of the debugger backend
1472 1472 @type str
1473 def signalClientLine(self, filename, lineno, forStack=False): 1473 """
1474 if debuggerId:
1475 self.clientOutput.emit("{0}: {1}".format(debuggerId, line))
1476 else:
1477 self.clientOutput.emit(line)
1478
1479 def signalClientLine(self, filename, lineno, debuggerId, forStack=False):
1474 """ 1480 """
1475 Public method to process client position feedback. 1481 Public method to process client position feedback.
1476 1482
1477 @param filename name of the file currently being executed (string) 1483 @param filename name of the file currently being executed
1478 @param lineno line of code currently being executed (integer) 1484 @type str
1479 @param forStack flag indicating this is for a stack dump (boolean) 1485 @param lineno line of code currently being executed
1480 """ 1486 @type int
1481 self.clientLine.emit(filename, lineno, forStack) 1487 @param debuggerId ID of the debugger backend
1482 1488 @type str
1483 def signalClientStack(self, stack): 1489 @param forStack flag indicating this is for a stack dump
1490 @type bool
1491 """
1492 self.clientLine.emit(filename, lineno, debuggerId, forStack)
1493
1494 def signalClientStack(self, stack, debuggerId):
1484 """ 1495 """
1485 Public method to process a client's stack information. 1496 Public method to process a client's stack information.
1486 1497
1487 @param stack list of stack entries. Each entry is a tuple of three 1498 @param stack list of stack entries. Each entry is a tuple of three
1488 values giving the filename, linenumber and method 1499 values giving the filename, linenumber and method
1489 (list of lists of (string, integer, string)) 1500 @type list of lists of (string, integer, string)
1490 """ 1501 @param debuggerId ID of the debugger backend
1491 self.clientStack.emit(stack) 1502 @type str
1492 1503 """
1493 def signalClientThreadList(self, currentId, threadList): 1504 self.clientStack.emit(stack, debuggerId)
1505
1506 def signalClientThreadList(self, currentId, threadList, debuggerId):
1494 """ 1507 """
1495 Public method to process the client thread list info. 1508 Public method to process the client thread list info.
1496 1509
1497 @param currentId id of the current thread (integer) 1510 @param currentId id of the current thread
1511 @type int
1498 @param threadList list of dictionaries containing the thread data 1512 @param threadList list of dictionaries containing the thread data
1499 """ 1513 @type list of dict
1500 self.clientThreadList.emit(currentId, threadList) 1514 @param debuggerId ID of the debugger backend
1515 @type str
1516 """
1517 self.clientThreadList.emit(currentId, threadList, debuggerId)
1501 1518
1502 def signalClientThreadSet(self): 1519 def signalClientThreadSet(self):
1503 """ 1520 """
1504 Public method to handle the change of the client thread. 1521 Public method to handle the change of the client thread.
1505 """ 1522 """

eric ide

mercurial