36 self.qsock = None |
36 self.qsock = None |
37 self.queue = [] |
37 self.queue = [] |
38 # set default values for capabilities of clients |
38 # set default values for capabilities of clients |
39 self.clientCapabilities = ClientDefaultCapabilities |
39 self.clientCapabilities = ClientDefaultCapabilities |
40 |
40 |
41 def startRemote(self, port, runInConsole, venvName, originalPathString): |
41 def startRemote(self, port, runInConsole, venvName, originalPathString, |
|
42 workingDir=None): |
42 """ |
43 """ |
43 Public method to start a remote Python interpreter. |
44 Public method to start a remote Python interpreter. |
44 |
45 |
45 @param port port number the debug server is listening on |
46 @param port port number the debug server is listening on |
46 @type int |
47 @type int |
49 @type bool |
50 @type bool |
50 @param venvName name of the virtual environment to be used |
51 @param venvName name of the virtual environment to be used |
51 @type str |
52 @type str |
52 @param originalPathString original PATH environment variable |
53 @param originalPathString original PATH environment variable |
53 @type str |
54 @type str |
|
55 @param workingDir directory to start the debugger client in |
|
56 @type str |
54 @return client process object, a flag to indicate a network connection |
57 @return client process object, a flag to indicate a network connection |
55 and the name of the interpreter in case of a local execution |
58 and the name of the interpreter in case of a local execution |
56 @rtype tuple of (QProcess, bool, str) |
59 @rtype tuple of (QProcess, bool, str) |
57 """ |
60 """ |
58 return None, True, "" |
61 return None, True, "" |
59 |
62 |
60 def startRemoteForProject(self, port, runInConsole, venvName, |
63 def startRemoteForProject(self, port, runInConsole, venvName, |
61 originalPathString): |
64 originalPathString, workingDir=None): |
62 """ |
65 """ |
63 Public method to start a remote Python interpreter for a project. |
66 Public method to start a remote Python interpreter for a project. |
64 |
67 |
65 @param port port number the debug server is listening on |
68 @param port port number the debug server is listening on |
66 @type int |
69 @type int |
68 console window |
71 console window |
69 @type bool |
72 @type bool |
70 @param venvName name of the virtual environment to be used |
73 @param venvName name of the virtual environment to be used |
71 @type str |
74 @type str |
72 @param originalPathString original PATH environment variable |
75 @param originalPathString original PATH environment variable |
|
76 @type str |
|
77 @param workingDir directory to start the debugger client in |
73 @type str |
78 @type str |
74 @return client process object, a flag to indicate a network connection |
79 @return client process object, a flag to indicate a network connection |
75 and the name of the interpreter in case of a local execution |
80 and the name of the interpreter in case of a local execution |
76 @rtype tuple of (QProcess, bool, str) |
81 @rtype tuple of (QProcess, bool, str) |
77 """ |
82 """ |