Debugger/DebugServer.py

changeset 4366
9445c7cb991f
parent 4021
195a471c327b
child 4476
43ff14cde5e3
--- a/Debugger/DebugServer.py	Sun Aug 16 12:24:28 2015 +0200
+++ b/Debugger/DebugServer.py	Sun Aug 16 13:47:44 2015 +0200
@@ -68,6 +68,8 @@
         the client side
     @signal clientSyntaxError(exception) emitted after a syntax error has been
         detected on the client side
+    @signal clientSignal(signal) emitted after a signal has been generated on
+        the client side
     @signal clientExit(int) emitted with the exit status after the client has
         exited
     @signal clientClearBreak(filename, lineno) emitted after the debug client
@@ -131,6 +133,7 @@
     clientStatement = pyqtSignal(bool)
     clientException = pyqtSignal(str, str, list)
     clientSyntaxError = pyqtSignal(str, str, int, int)
+    clientSignal = pyqtSignal(str, str, int, str, str)
     clientExit = pyqtSignal(int)
     clientBreakConditionError = pyqtSignal(str, int)
     clientWatchConditionError = pyqtSignal(str)
@@ -1263,6 +1266,26 @@
         if self.running:
             self.clientSyntaxError.emit(message, filename, lineNo, characterNo)
         
+    def signalClientSignal(self, message, filename, lineNo,
+                           funcName, funcArgs):
+        """
+        Public method to process a signal generated on the client side.
+        
+        @param message message of the syntax error
+        @type str
+        @param filename translated filename of the syntax error position
+        @type str
+        @param lineNo line number of the syntax error position
+        @type int
+        @param funcName name of the function causing the signal
+        @type str
+        @param funcArgs function arguments
+        @type str
+        """
+        if self.running:
+            self.clientSignal.emit(message, filename, lineNo,
+                                   funcName, funcArgs)
+        
     def signalClientExit(self, status):
         """
         Public method to process the client exit status.

eric ide

mercurial