668 @param filter regexp string for variable names to filter out (string) |
668 @param filter regexp string for variable names to filter out (string) |
669 """ |
669 """ |
670 self.__sendCommand('{0}{1:d}, "{2}"\n'.format( |
670 self.__sendCommand('{0}{1:d}, "{2}"\n'.format( |
671 DebugProtocol.RequestSetFilter, scope, filter)) |
671 DebugProtocol.RequestSetFilter, scope, filter)) |
672 |
672 |
|
673 def setCallTraceEnabled(self, on): |
|
674 """ |
|
675 Public method to set the call trace state. |
|
676 |
|
677 @param on flag indicating to enable the call trace function (boolean) |
|
678 """ |
|
679 if on: |
|
680 cmd = "on" |
|
681 else: |
|
682 cmd = "off" |
|
683 self.__sendCommand('{0}{1}\n'.format(DebugProtocol.RequestCallTrace, cmd)) |
|
684 |
673 def remoteEval(self, arg): |
685 def remoteEval(self, arg): |
674 """ |
686 """ |
675 Public method to evaluate arg in the current context of the debugged program. |
687 Public method to evaluate arg in the current context of the debugged program. |
676 |
688 |
677 @param arg the arguments to evaluate (string) |
689 @param arg the arguments to evaluate (string) |
801 QTimer.singleShot(0, self.remoteContinue) |
813 QTimer.singleShot(0, self.remoteContinue) |
802 else: |
814 else: |
803 self.debugServer.signalClientLine(cf[0], int(cf[1]), |
815 self.debugServer.signalClientLine(cf[0], int(cf[1]), |
804 resp == DebugProtocol.ResponseStack) |
816 resp == DebugProtocol.ResponseStack) |
805 self.debugServer.signalClientStack(stack) |
817 self.debugServer.signalClientStack(stack) |
|
818 continue |
|
819 |
|
820 if resp == DebugProtocol.CallTrace: |
|
821 event, fromStr, toStr = line[eoc:-1].split("@@") |
|
822 isCall = event.lower() == "c" |
|
823 fromFile, fromLineno, fromFunc = fromStr.rsplit(":", 2) |
|
824 toFile, toLineno, toFunc = toStr.rsplit(":", 2) |
|
825 self.debugServer.signalClientCallTrace(isCall, |
|
826 fromFile, fromLineno, fromFunc, |
|
827 toFile, toLineno, toFunc) |
806 continue |
828 continue |
807 |
829 |
808 if resp == DebugProtocol.ResponseThreadList: |
830 if resp == DebugProtocol.ResponseThreadList: |
809 currentId, threadList = eval(evalArg) |
831 currentId, threadList = eval(evalArg) |
810 self.debugServer.signalClientThreadList(currentId, threadList) |
832 self.debugServer.signalClientThreadList(currentId, threadList) |