eric6/Debugger/DebuggerInterfaceNone.py

branch
multi_processing
changeset 7882
617cc27f11af
parent 7874
8dcb77600690
child 7897
9acc015ea443
equal deleted inserted replaced
7881:6c09c023cda5 7882:617cc27f11af
21 """ 21 """
22 def __init__(self, debugServer, passive): 22 def __init__(self, debugServer, passive):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param debugServer reference to the debug server (DebugServer) 26 @param debugServer reference to the debug server
27 @param passive flag indicating passive connection mode (boolean) 27 @type DebugServer
28 @param passive flag indicating passive connection mode
29 @type bool
28 """ 30 """
29 super(DebuggerInterfaceNone, self).__init__() 31 super(DebuggerInterfaceNone, self).__init__()
30 32
31 self.debugServer = debugServer 33 self.debugServer = debugServer
32 self.passive = passive 34 self.passive = passive
82 84
83 def getClientCapabilities(self): 85 def getClientCapabilities(self):
84 """ 86 """
85 Public method to retrieve the debug clients capabilities. 87 Public method to retrieve the debug clients capabilities.
86 88
87 @return debug client capabilities (integer) 89 @return debug client capabilities
90 @rtype int
88 """ 91 """
89 return self.clientCapabilities 92 return self.clientCapabilities
90 93
91 def newConnection(self, sock): 94 def newConnection(self, sock):
92 """ 95 """
93 Public slot to handle a new connection. 96 Public slot to handle a new connection.
94 97
95 @param sock reference to the socket object (QTcpSocket) 98 @param sock reference to the socket object
96 @return flag indicating success (boolean) 99 @type QTcpSocket
100 @return flag indicating success
101 @rtype bool
97 """ 102 """
98 return False 103 return False
99 104
100 def getDebuggerIds(self): 105 def getDebuggerIds(self):
101 """ 106 """
108 113
109 def shutdown(self): 114 def shutdown(self):
110 """ 115 """
111 Public method to cleanly shut down. 116 Public method to cleanly shut down.
112 117
113 It closes our socket and shuts down 118 It closes our socket and shuts down the debug client.
114 the debug client. (Needed on Win OS) 119 (Needed on Win OS)
115 """ 120 """
116 self.qsock = None 121 self.qsock = None
117 self.queue = [] 122 self.queue = []
118 123
119 def isConnected(self): 124 def isConnected(self):
120 """ 125 """
121 Public method to test, if a debug client has connected. 126 Public method to test, if a debug client has connected.
122 127
123 @return flag indicating the connection status (boolean) 128 @return flag indicating the connection status
129 @rtype bool
124 """ 130 """
125 return self.qsock is not None 131 return self.qsock is not None
126 132
127 def remoteEnvironment(self, env): 133 def remoteEnvironment(self, env):
128 """ 134 """
129 Public method to set the environment for a program to debug, run, ... 135 Public method to set the environment for a program to debug, run, ...
130 136
131 @param env environment settings (dictionary) 137 @param env environment settings
138 @type dict
132 """ 139 """
133 return 140 return
134 141
135 def remoteLoad(self, fn, argv, wd, traceInterpreter=False, 142 def remoteLoad(self, fn, argv, wd, traceInterpreter=False,
136 autoContinue=True, enableMultiprocess=False): 143 autoContinue=True, enableMultiprocess=False):

eric ide

mercurial