Debugger/DebuggerInterfaceNone.py

branch
maintenance
changeset 6646
51eefa621de4
parent 6645
ad476851d7e0
child 6892
c147620313c5
equal deleted inserted replaced
6603:77189681b787 6646:51eefa621de4
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2007 - 2018 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2007 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dummy debugger interface for the debug server. 7 Module implementing a dummy debugger interface for the debug server.
8 """ 8 """
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 """

eric ide

mercurial