eric6/E5XML/SessionReader.py

changeset 8228
772103b14c18
parent 8163
29fb6d420a25
equal deleted inserted replaced
8227:349308e84eeb 8228:772103b14c18
269 self.dbg.setExcIgnoreList(dbgExcIgnoreList) 269 self.dbg.setExcIgnoreList(dbgExcIgnoreList)
270 if not self.isGlobal: 270 if not self.isGlobal:
271 self.project.dbgExcIgnoreList = dbgExcIgnoreList[:] 271 self.project.dbgExcIgnoreList = dbgExcIgnoreList[:]
272 272
273 if self.isStartElement(): 273 if self.isStartElement():
274 if self.name() == "VirtualEnv": 274 if self.name() in ("Exceptions", "IgnoredExceptions",
275 "CovexcPattern"):
276 pass # ignore these start tags
277 elif self.name() == "VirtualEnv":
275 txt = self.readElementText() 278 txt = self.readElementText()
276 self.dbg.lastUsedVenvName = txt 279 self.dbg.lastUsedVenvName = txt
277 if not self.isGlobal: 280 if not self.isGlobal:
278 self.project.dbgVirtualEnv = txt 281 self.project.dbgVirtualEnv = txt
279 elif self.name() == "Interpreter": 282 elif self.name() == "Interpreter":
297 elif self.name() == "ReportExceptions": 300 elif self.name() == "ReportExceptions":
298 exc = self.toBool(self.attribute("value", "True")) 301 exc = self.toBool(self.attribute("value", "True"))
299 self.dbg.setExceptionReporting(exc) 302 self.dbg.setExceptionReporting(exc)
300 if not self.isGlobal: 303 if not self.isGlobal:
301 self.project.dbgReportExceptions = exc 304 self.project.dbgReportExceptions = exc
302 elif self.name() == "Exceptions":
303 pass # ignore this start tag
304 elif self.name() == "Exception": 305 elif self.name() == "Exception":
305 dbgExcList.append(self.readElementText()) 306 dbgExcList.append(self.readElementText())
306 elif self.name() == "IgnoredExceptions":
307 pass # ignore this start tag
308 elif self.name() == "IgnoredException": 307 elif self.name() == "IgnoredException":
309 dbgExcIgnoreList.append(self.readElementText()) 308 dbgExcIgnoreList.append(self.readElementText())
310 elif self.name() == "AutoClearShell": 309 elif self.name() == "AutoClearShell":
311 val = self.toBool(self.attribute("value")) 310 val = self.toBool(self.attribute("value"))
312 self.dbg.setAutoClearShell(val) 311 self.dbg.setAutoClearShell(val)
330 elif self.name() == "MultiprocessNoDebug": 329 elif self.name() == "MultiprocessNoDebug":
331 txt = self.readElementText() 330 txt = self.readElementText()
332 self.dbg.setMultiprocessNoDebugHistory(txt) 331 self.dbg.setMultiprocessNoDebugHistory(txt)
333 if not self.isGlobal: 332 if not self.isGlobal:
334 self.project.dbgMultiprocessNoDebug = txt 333 self.project.dbgMultiprocessNoDebug = txt
335 elif self.name() == "CovexcPattern":
336 pass # ignore this start tag
337 elif self.name() == "GlobalConfigOverride": 334 elif self.name() == "GlobalConfigOverride":
338 configOverride = { 335 configOverride = {
339 "enable": self.toBool(self.attribute("enable")), 336 "enable": self.toBool(self.attribute("enable")),
340 "redirect": self.toBool(self.attribute("redirect")), 337 "redirect": self.toBool(self.attribute("redirect")),
341 } 338 }

eric ide

mercurial