Debugger/DebuggerInterfacePython3.py

changeset 5848
56388f41b1e6
parent 5658
e5f6fe5855fd
equal deleted inserted replaced
5847:fd1262c3fa79 5848:56388f41b1e6
28 28
29 29
30 ClientDefaultCapabilities = DebugClientCapabilities.HasAll 30 ClientDefaultCapabilities = DebugClientCapabilities.HasAll
31 31
32 32
33 # TODO: integrate DebuggerInterfacePython2 here and rename as DebuggerInterfacePython
34 # TODO: introduce a clientType parameter to the constructor being 'Python2' or 'Python3'
35 # TODO: determine Preferences parameters based on this clientType
33 class DebuggerInterfacePython3(QObject): 36 class DebuggerInterfacePython3(QObject):
34 """ 37 """
35 Class implementing the Python 3 debugger interface for the debug server. 38 Class implementing the Python 3 debugger interface for the debug server.
36 """ 39 """
37 def __init__(self, debugServer, passive): 40 def __init__(self, debugServer, passive):
1063 self.qsock.write(cmd.encode('utf8', 'backslashreplace')) 1066 self.qsock.write(cmd.encode('utf8', 'backslashreplace'))
1064 else: 1067 else:
1065 self.queue.append(cmd) 1068 self.queue.append(cmd)
1066 1069
1067 1070
1071 # TODO: duplicate to create the interface object for Python2
1068 def createDebuggerInterfacePython3(debugServer, passive): 1072 def createDebuggerInterfacePython3(debugServer, passive):
1069 """ 1073 """
1070 Module function to create a debugger interface instance. 1074 Module function to create a debugger interface instance.
1071 1075
1072 1076
1078 @rtype DebuggerInterfacePython 1082 @rtype DebuggerInterfacePython
1079 """ 1083 """
1080 return DebuggerInterfacePython3(debugServer, passive) 1084 return DebuggerInterfacePython3(debugServer, passive)
1081 1085
1082 1086
1087 # TODO: change this to return a list of registry data tuples (one for Python2 and one for Python3)
1083 def getRegistryData(): 1088 def getRegistryData():
1084 """ 1089 """
1085 Module function to get characterizing data for the debugger interface. 1090 Module function to get characterizing data for the debugger interface.
1086 1091
1087 @return tuple containing client type, client capabilities, client file 1092 @return tuple containing client type, client capabilities, client file

eric ide

mercurial