コード例 #1
0
 def userInput(self, collectedString):
     """Called when the user finished input"""
     if self.__clientSocket:
         sendJSONCommand(self.__clientSocket, METHOD_STDIN, self.procuuid,
                         {'input': collectedString})
コード例 #2
0
 def __sendExit(self):
     """sends the exit command to the runnee"""
     self.__disconnectSocket()
     sendJSONCommand(self.__clientSocket, METHOD_EPILOGUE_EXIT,
                     self.procuuid, None)
コード例 #3
0
 def sendJSONCommand(self, method, params):
     """Sends a command to the debuggee. Used by the debugger."""
     sendJSONCommand(self.__clientSocket, method, self.procuuid, params)
コード例 #4
0
 def __sendStart(self):
     """Sends the start command to the runnee"""
     sendJSONCommand(self.__clientSocket, METHOD_PROLOGUE_CONTINUE,
                     self.procuuid, None)