E5XML/SessionWriter.py

changeset 6352
4bdc6503df81
parent 6052
8b49d3e0b4c8
child 6645
ad476851d7e0
equal deleted inserted replaced
6351:27ce01e44a5f 6352:4bdc6503df81
177 dbgWd = "" 177 dbgWd = ""
178 if len(self.dbg.envHistory): 178 if len(self.dbg.envHistory):
179 dbgEnv = self.dbg.envHistory[0] 179 dbgEnv = self.dbg.envHistory[0]
180 else: 180 else:
181 dbgEnv = "" 181 dbgEnv = ""
182 if len(self.dbg.interpreterHistory): 182 self.writeTextElement("VirtualEnv", self.dbg.lastUsedVenvName)
183 dbgInterpreter = self.dbg.interpreterHistory[0]
184 else:
185 dbgInterpreter = ""
186 self.writeTextElement("Interpreter", dbgInterpreter)
187 self.writeTextElement("CommandLine", dbgCmdline) 183 self.writeTextElement("CommandLine", dbgCmdline)
188 self.writeTextElement("WorkingDirectory", dbgWd) 184 self.writeTextElement("WorkingDirectory", dbgWd)
189 self.writeTextElement("Environment", dbgEnv) 185 self.writeTextElement("Environment", dbgEnv)
190 self.writeEmptyElement("ReportExceptions") 186 self.writeEmptyElement("ReportExceptions")
191 self.writeAttribute("value", str(self.dbg.exceptions)) 187 self.writeAttribute("value", str(self.dbg.exceptions))
203 self.writeAttribute("value", str(self.dbg.tracePython)) 199 self.writeAttribute("value", str(self.dbg.tracePython))
204 self.writeEmptyElement("AutoContinue") 200 self.writeEmptyElement("AutoContinue")
205 self.writeAttribute("value", str(self.dbg.autoContinue)) 201 self.writeAttribute("value", str(self.dbg.autoContinue))
206 self.writeEmptyElement("CovexcPattern") # kept for compatibility 202 self.writeEmptyElement("CovexcPattern") # kept for compatibility
207 else: 203 else:
208 self.writeTextElement("Interpreter", self.project.dbgInterpreter) 204 self.writeTextElement("VirtualEnv", self.project.dbgVirtualEnv)
209 self.writeTextElement("CommandLine", self.project.dbgCmdline) 205 self.writeTextElement("CommandLine", self.project.dbgCmdline)
210 self.writeTextElement("WorkingDirectory", self.project.dbgWd) 206 self.writeTextElement("WorkingDirectory", self.project.dbgWd)
211 self.writeTextElement("Environment", self.project.dbgEnv) 207 self.writeTextElement("Environment", self.project.dbgEnv)
212 self.writeEmptyElement("ReportExceptions") 208 self.writeEmptyElement("ReportExceptions")
213 self.writeAttribute("value", str(self.project.dbgReportExceptions)) 209 self.writeAttribute("value", str(self.project.dbgReportExceptions))

eric ide

mercurial