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