DebugClients/Python/DebugClientBase.py

changeset 2953
703452a2876f
parent 2761
bcc10ef7015d
child 2987
c99695c0f13a
--- a/DebugClients/Python/DebugClientBase.py	Sat Sep 28 17:40:42 2013 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Sat Sep 28 19:06:25 2013 +0200
@@ -38,8 +38,9 @@
     
     This function works with the split debugger.
     
-    @param prompt The prompt to be shown. (string)
-    @param echo Flag indicating echoing of the input (boolean)
+    @param prompt prompt to be shown. (string)
+    @param echo flag indicating echoing of the input (boolean)
+    @return result of the raw_input() call
     """
     if DebugClientInstance is None or DebugClientInstance.redirect == 0:
         return DebugClientOrigRawInput(prompt)
@@ -64,7 +65,8 @@
     
     This function works with the split debugger.
     
-    @param prompt The prompt to be shown. (string)
+    @param prompt prompt to be shown (string)
+    @return result of the input() call
     """
     if DebugClientInstance is None or DebugClientInstance.redirect == 0:
         return DebugClientOrigInput(prompt)
@@ -86,6 +88,8 @@
 def DebugClientFork():
     """
     Replacement for the standard os.fork().
+    
+    @return result of the fork() call
     """
     if DebugClientInstance is None:
         return DebugClientOrigFork()
@@ -296,7 +300,6 @@
         @param kwargs keyword arguments to pass to target
         @param mainThread non-zero, if we are attaching to the already
               started mainthread of the app
-        @return The identifier of the created thread
         """
         if self.debugging:
             sys.setprofile(self.profile)
@@ -349,7 +352,7 @@
         
     def __exceptionRaised(self):
         """
-        Private method called in the case of an exception
+        Private method called in the case of an exception.
         
         It ensures that the debug server is informed of the raised exception.
         """
@@ -1203,6 +1206,8 @@
     def getRunning(self):
         """
         Public method to return the main script we are currently running.
+        
+        @return flag indicating a running debug session (boolean)
         """
         return self.running
 
@@ -2022,7 +2027,10 @@
         
     def fork(self):
         """
-        Public method implementing a fork routine deciding which branch to follow.
+        Public method implementing a fork routine deciding which branch to
+        follow.
+        
+        @return process ID (integer)
         """
         if not self.fork_auto:
             self.write(DebugProtocol.RequestForkTo + '\n')

eric ide

mercurial