775 resp == ResponseStack) |
779 resp == ResponseStack) |
776 self.debugServer.signalClientStack(stack) |
780 self.debugServer.signalClientStack(stack) |
777 continue |
781 continue |
778 |
782 |
779 if resp == ResponseThreadList: |
783 if resp == ResponseThreadList: |
780 currentId, threadList = eval(line[eoc:-1]) |
784 currentId, threadList = eval(evalArg) |
781 self.debugServer.signalClientThreadList(currentId, threadList) |
785 self.debugServer.signalClientThreadList(currentId, threadList) |
782 continue |
786 continue |
783 |
787 |
784 if resp == ResponseThreadSet: |
788 if resp == ResponseThreadSet: |
785 self.debugServer.signalClientThreadSet() |
789 self.debugServer.signalClientThreadSet() |
786 continue |
790 continue |
787 |
791 |
788 if resp == ResponseVariables: |
792 if resp == ResponseVariables: |
789 vlist = eval(line[eoc:-1]) |
793 vlist = eval(evalArg) |
790 scope = vlist[0] |
794 scope = vlist[0] |
791 try: |
795 try: |
792 variables = vlist[1:] |
796 variables = vlist[1:] |
793 except IndexError: |
797 except IndexError: |
794 variables = [] |
798 variables = [] |
795 self.debugServer.signalClientVariables(scope, variables) |
799 self.debugServer.signalClientVariables(scope, variables) |
796 continue |
800 continue |
797 |
801 |
798 if resp == ResponseVariable: |
802 if resp == ResponseVariable: |
799 vlist = eval(line[eoc:-1]) |
803 vlist = eval(evalArg) |
800 scope = vlist[0] |
804 scope = vlist[0] |
801 try: |
805 try: |
802 variables = vlist[1:] |
806 variables = vlist[1:] |
803 except IndexError: |
807 except IndexError: |
804 variables = [] |
808 variables = [] |
844 cn = 0 |
846 cn = 0 |
845 self.debugServer.signalClientSyntaxError(message, fn, ln, cn) |
847 self.debugServer.signalClientSyntaxError(message, fn, ln, cn) |
846 continue |
848 continue |
847 |
849 |
848 if resp == ResponseExit: |
850 if resp == ResponseExit: |
849 self.debugServer.signalClientExit(line[eoc:-1]) |
851 self.debugServer.signalClientExit(evalArg) |
850 continue |
852 continue |
851 |
853 |
852 if resp == ResponseClearBreak: |
854 if resp == ResponseClearBreak: |
853 fn, lineno = line[eoc:-1].split(',') |
855 fn, lineno = evalArg.split(',') |
854 lineno = int(lineno) |
856 lineno = int(lineno) |
855 fn = self.translate(fn, True) |
857 fn = self.translate(fn, True) |
856 self.debugServer.signalClientClearBreak(fn, lineno) |
858 self.debugServer.signalClientClearBreak(fn, lineno) |
857 continue |
859 continue |
858 |
860 |
859 if resp == ResponseBPConditionError: |
861 if resp == ResponseBPConditionError: |
860 fn, lineno = line[eoc:-1].split(',') |
862 fn, lineno = evalArg.split(',') |
861 lineno = int(lineno) |
863 lineno = int(lineno) |
862 fn = self.translate(fn, True) |
864 fn = self.translate(fn, True) |
863 self.debugServer.signalClientBreakConditionError(fn, lineno) |
865 self.debugServer.signalClientBreakConditionError(fn, lineno) |
864 continue |
866 continue |
865 |
867 |
866 if resp == ResponseClearWatch: |
868 if resp == ResponseClearWatch: |
867 cond = line[eoc:-1] |
869 self.debugServer.signalClientClearWatch(evalArg) |
868 self.debugServer.signalClientClearWatch(cond) |
|
869 continue |
870 continue |
870 |
871 |
871 if resp == ResponseWPConditionError: |
872 if resp == ResponseWPConditionError: |
872 cond = line[eoc:-1] |
873 self.debugServer.signalClientWatchConditionError(evalArg) |
873 self.debugServer.signalClientWatchConditionError(cond) |
|
874 continue |
874 continue |
875 |
875 |
876 if resp == ResponseRaw: |
876 if resp == ResponseRaw: |
877 prompt, echo = eval(line[eoc:-1]) |
877 prompt, echo = eval(evalArg) |
878 self.debugServer.signalClientRawInput(prompt, echo) |
878 self.debugServer.signalClientRawInput(prompt, echo) |
879 continue |
879 continue |
880 |
880 |
881 if resp == ResponseBanner: |
881 if resp == ResponseBanner: |
882 version, platform, dbgclient = eval(line[eoc:-1]) |
882 version, platform, dbgclient = eval(evalArg) |
883 self.debugServer.signalClientBanner(version, platform, dbgclient) |
883 self.debugServer.signalClientBanner(version, platform, dbgclient) |
884 continue |
884 continue |
885 |
885 |
886 if resp == ResponseCapabilities: |
886 if resp == ResponseCapabilities: |
887 cap, clType = eval(line[eoc:-1]) |
887 cap, clType = eval(evalArg) |
888 self.clientCapabilities = cap |
888 self.clientCapabilities = cap |
889 self.debugServer.signalClientCapabilities(cap, clType) |
889 self.debugServer.signalClientCapabilities(cap, clType) |
890 continue |
890 continue |
891 |
891 |
892 if resp == ResponseCompletion: |
892 if resp == ResponseCompletion: |
893 clstring, text = line[eoc:-1].split('||') |
893 clstring, text = evalArg.split('||') |
894 cl = eval(clstring) |
894 cl = eval(clstring) |
895 self.debugServer.signalClientCompletionList(cl, text) |
895 self.debugServer.signalClientCompletionList(cl, text) |
896 continue |
896 continue |
897 |
897 |
898 if resp == PassiveStartup: |
898 if resp == PassiveStartup: |
899 fn, exc = line[eoc:-1].split('|') |
899 fn, exc = evalArg.split('|') |
900 exc = bool(exc) |
900 exc = bool(exc) |
901 fn = self.translate(fn, True) |
901 fn = self.translate(fn, True) |
902 self.debugServer.passiveStartUp(fn, exc) |
902 self.debugServer.passiveStartUp(fn, exc) |
903 continue |
903 continue |
904 |
904 |
905 if resp == ResponseUTPrepared: |
905 if resp == ResponseUTPrepared: |
906 res, exc_type, exc_value = eval(line[eoc:-1]) |
906 res, exc_type, exc_value = eval(evalArg) |
907 self.debugServer.clientUtPrepared(res, exc_type, exc_value) |
907 self.debugServer.clientUtPrepared(res, exc_type, exc_value) |
908 continue |
908 continue |
909 |
909 |
910 if resp == ResponseUTStartTest: |
910 if resp == ResponseUTStartTest: |
911 testname, doc = eval(line[eoc:-1]) |
911 testname, doc = eval(evalArg) |
912 self.debugServer.clientUtStartTest(testname, doc) |
912 self.debugServer.clientUtStartTest(testname, doc) |
913 continue |
913 continue |
914 |
914 |
915 if resp == ResponseUTStopTest: |
915 if resp == ResponseUTStopTest: |
916 self.debugServer.clientUtStopTest() |
916 self.debugServer.clientUtStopTest() |
917 continue |
917 continue |
918 |
918 |
919 if resp == ResponseUTTestFailed: |
919 if resp == ResponseUTTestFailed: |
920 testname, traceback = eval(line[eoc:-1]) |
920 testname, traceback = eval(evalArg) |
921 self.debugServer.clientUtTestFailed(testname, traceback) |
921 self.debugServer.clientUtTestFailed(testname, traceback) |
922 continue |
922 continue |
923 |
923 |
924 if resp == ResponseUTTestErrored: |
924 if resp == ResponseUTTestErrored: |
925 testname, traceback = eval(line[eoc:-1]) |
925 testname, traceback = eval(evalArg) |
926 self.debugServer.clientUtTestErrored(testname, traceback) |
926 self.debugServer.clientUtTestErrored(testname, traceback) |
927 continue |
927 continue |
928 |
928 |
929 if resp == ResponseUTFinished: |
929 if resp == ResponseUTFinished: |
930 self.debugServer.clientUtFinished() |
930 self.debugServer.clientUtFinished() |
931 continue |
931 continue |
932 |
932 |
933 if resp == RequestForkTo: |
933 if resp == RequestForkTo: |
934 self.__askForkTo() |
934 self.__askForkTo() |
935 continue |
935 continue |
936 |
936 |
937 self.debugServer.signalClientOutput(line) |
937 self.debugServer.signalClientOutput(line) |
938 |
938 |
939 def __sendCommand(self, cmd): |
939 def __sendCommand(self, cmd): |
940 """ |
940 """ |
941 Private method to send a single line command to the client. |
941 Private method to send a single line command to the client. |