diff -r d036d72f457c -r 5401ae8ddaa1 eric6/Debugger/DebuggerInterfacePython.py --- a/eric6/Debugger/DebuggerInterfacePython.py Mon Jan 27 19:50:40 2020 +0100 +++ b/eric6/Debugger/DebuggerInterfacePython.py Tue Jan 28 19:41:51 2020 +0100 @@ -528,6 +528,18 @@ if sock in self.__pendingConnections: self.__connections[debuggerId] = sock self.__pendingConnections.remove(sock) + + self.debugServer.signalClientDebuggerIds( + sorted(self.__connections.keys())) + + def getDebuggerIds(self): + """ + Public method to return the IDs of the connected debugger backends. + + @return list of connected debugger backend IDs + @rtype list of str + """ + return sorted(self.__connections.keys()) def flush(self): """ @@ -837,23 +849,39 @@ "input": s, }) - def remoteThreadList(self): + def remoteThreadList(self, debuggerId=""): """ Public method to request the list of threads from the client. + + @param debuggerId ID of the debugger backend + @type str """ - self.__sendJsonCommand("RequestThreadList", {}) + self.__sendJsonCommand("RequestThreadList", {}, debuggerId=debuggerId) - def remoteSetThread(self, tid): + def remoteSetThread(self, tid, debuggerId=""): """ Public method to request to set the given thread as current thread. - @param tid id of the thread (integer) + @param tid id of the thread + @type int + @param debuggerId ID of the debugger backend + @type str """ self.__sendJsonCommand("RequestThreadSet", { "threadID": tid, - }) + }, debuggerId=debuggerId) + + def remoteClientStack(self, debuggerId=""): + """ + Public method to request the stack of the main thread. - def remoteClientVariables(self, scope, filterList, framenr=0, maxSize=0): + @param debuggerId ID of the debugger backend + @type str + """ + self.__sendJsonCommand("RequestStack", {}, debuggerId=debuggerId) + + def remoteClientVariables(self, scope, filterList, framenr=0, maxSize=0, + debuggerId=""): """ Public method to request the variables of the debugged program. @@ -867,13 +895,15 @@ be shown. If it is bigger than that, a 'too big' indication will be given (@@TOO_BIG_TO_SHOW@@). @type int + @param debuggerId ID of the debugger backend + @type str """ self.__sendJsonCommand("RequestVariables", { "frameNumber": framenr, "scope": scope, "filters": filterList, "maxSize": maxSize, - }) + }, debuggerId=debuggerId) def remoteClientVariable(self, scope, filterList, var, framenr=0, maxSize=0):