E5XML/SessionWriter.py

changeset 5899
0516f6548ca6
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
5898:fc96d49f5fbf 5899:0516f6548ca6
167 dbgWd = "" 167 dbgWd = ""
168 if len(self.dbg.envHistory): 168 if len(self.dbg.envHistory):
169 dbgEnv = self.dbg.envHistory[0] 169 dbgEnv = self.dbg.envHistory[0]
170 else: 170 else:
171 dbgEnv = "" 171 dbgEnv = ""
172 if len(self.dbg.interpreterHistory):
173 dbgInterpreter = self.dbg.interpreterHistory[0]
174 else:
175 dbgInterpreter = ""
176 self.writeTextElement("Interpreter", dbgInterpreter)
172 self.writeTextElement("CommandLine", dbgCmdline) 177 self.writeTextElement("CommandLine", dbgCmdline)
173 self.writeTextElement("WorkingDirectory", dbgWd) 178 self.writeTextElement("WorkingDirectory", dbgWd)
174 self.writeTextElement("Environment", dbgEnv) 179 self.writeTextElement("Environment", dbgEnv)
175 self.writeEmptyElement("ReportExceptions") 180 self.writeEmptyElement("ReportExceptions")
176 self.writeAttribute("value", str(self.dbg.exceptions)) 181 self.writeAttribute("value", str(self.dbg.exceptions))
188 self.writeAttribute("value", str(self.dbg.tracePython)) 193 self.writeAttribute("value", str(self.dbg.tracePython))
189 self.writeEmptyElement("AutoContinue") 194 self.writeEmptyElement("AutoContinue")
190 self.writeAttribute("value", str(self.dbg.autoContinue)) 195 self.writeAttribute("value", str(self.dbg.autoContinue))
191 self.writeEmptyElement("CovexcPattern") # kept for compatibility 196 self.writeEmptyElement("CovexcPattern") # kept for compatibility
192 else: 197 else:
198 self.writeTextElement("Interpreter", self.project.dbgInterpreter)
193 self.writeTextElement("CommandLine", self.project.dbgCmdline) 199 self.writeTextElement("CommandLine", self.project.dbgCmdline)
194 self.writeTextElement("WorkingDirectory", self.project.dbgWd) 200 self.writeTextElement("WorkingDirectory", self.project.dbgWd)
195 self.writeTextElement("Environment", self.project.dbgEnv) 201 self.writeTextElement("Environment", self.project.dbgEnv)
196 self.writeEmptyElement("ReportExceptions") 202 self.writeEmptyElement("ReportExceptions")
197 self.writeAttribute("value", str(self.project.dbgReportExceptions)) 203 self.writeAttribute("value", str(self.project.dbgReportExceptions))

eric ide

mercurial