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