61 self.interpreterPicker.setText("/usr/bin/ruby") |
61 self.interpreterPicker.setText("/usr/bin/ruby") |
62 if self.project.debugProperties["DEBUGCLIENT"]: |
62 if self.project.debugProperties["DEBUGCLIENT"]: |
63 self.debugClientPicker.setText( |
63 self.debugClientPicker.setText( |
64 self.project.debugProperties["DEBUGCLIENT"]) |
64 self.project.debugProperties["DEBUGCLIENT"]) |
65 else: |
65 else: |
66 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2"]: |
66 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
|
67 "Python3"]: |
67 debugClient = os.path.join( |
68 debugClient = os.path.join( |
68 getConfig('ericDir'), |
69 getConfig('ericDir'), |
69 "DebugClients", "Python", "DebugClient.py") |
70 "DebugClients", "Python", "DebugClient.py") |
70 elif self.project.pdata["PROGLANGUAGE"] == "Python3": |
|
71 debugClient = os.path.join( |
|
72 getConfig('ericDir'), |
|
73 "DebugClients", "Python3", "DebugClient.py") |
|
74 elif self.project.pdata["PROGLANGUAGE"] == "Ruby": |
|
75 debugClient = os.path.join( |
|
76 getConfig('ericDir'), |
|
77 "DebugClients", "Ruby", "DebugClient.rb") |
|
78 else: |
71 else: |
79 debugClient = "" |
72 debugClient = "" |
80 self.debugClientPicker.setText(debugClient) |
73 self.debugClientPicker.setText(debugClient) |
81 self.debugEnvironmentOverrideCheckBox.setChecked( |
74 self.debugEnvironmentOverrideCheckBox.setChecked( |
82 self.project.debugProperties["ENVIRONMENTOVERRIDE"]) |
75 self.project.debugProperties["ENVIRONMENTOVERRIDE"]) |
110 def on_debugClientPicker_aboutToShowPathPickerDialog(self): |
103 def on_debugClientPicker_aboutToShowPathPickerDialog(self): |
111 """ |
104 """ |
112 Private slot to perform actions before the debug client selection |
105 Private slot to perform actions before the debug client selection |
113 dialog is shown. |
106 dialog is shown. |
114 """ |
107 """ |
115 filters = self.project.dbgFilters[self.project.pdata["PROGLANGUAGE"]] |
108 filters = self.project.getDebuggerFilters( |
|
109 self.project.pdata["PROGLANGUAGE"]) |
116 filters += self.tr("All Files (*)") |
110 filters += self.tr("All Files (*)") |
117 self.debugClientPicker.setFilters(filters) |
111 self.debugClientPicker.setFilters(filters) |
118 |
112 |
119 def storeData(self): |
113 def storeData(self): |
120 """ |
114 """ |
130 self.project.debugProperties["INTERPRETER"] = "/usr/bin/ruby" |
124 self.project.debugProperties["INTERPRETER"] = "/usr/bin/ruby" |
131 |
125 |
132 self.project.debugProperties["DEBUGCLIENT"] = \ |
126 self.project.debugProperties["DEBUGCLIENT"] = \ |
133 self.debugClientPicker.text() |
127 self.debugClientPicker.text() |
134 if not self.project.debugProperties["DEBUGCLIENT"]: |
128 if not self.project.debugProperties["DEBUGCLIENT"]: |
135 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2"]: |
129 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
|
130 "Python3"]: |
136 debugClient = os.path.join( |
131 debugClient = os.path.join( |
137 getConfig('ericDir'), |
132 getConfig('ericDir'), |
138 "DebugClients", "Python", "DebugClient.py") |
133 "DebugClients", "Python", "DebugClient.py") |
139 elif self.project.pdata["PROGLANGUAGE"] == "Python3": |
|
140 debugClient = os.path.join( |
|
141 getConfig('ericDir'), |
|
142 "DebugClients", "Python3", "DebugClient.py") |
|
143 elif self.project.pdata["PROGLANGUAGE"] == "Ruby": |
|
144 debugClient = os.path.join( |
|
145 getConfig('ericDir'), |
|
146 "DebugClients", "Ruby", "DebugClient.rb") |
|
147 else: |
134 else: |
148 debugClient = "" |
135 debugClient = "" |
149 self.project.debugProperties["DEBUGCLIENT"] = debugClient |
136 self.project.debugProperties["DEBUGCLIENT"] = debugClient |
150 |
137 |
151 self.project.debugProperties["ENVIRONMENTOVERRIDE"] = \ |
138 self.project.debugProperties["ENVIRONMENTOVERRIDE"] = \ |