src/eric7/Sessions/SessionFile.py

branch
eric7-maintenance
changeset 10365
0d603858452d
parent 10339
446d22fa1aea
child 10366
411df92e881f
equal deleted inserted replaced
10364:e90957951622 10365:0d603858452d
329 "enable": False, 329 "enable": False,
330 "redirect": True, 330 "redirect": True,
331 } 331 }
332 332
333 dbg.lastUsedVenvName = debugInfoDict["VirtualEnv"] 333 dbg.lastUsedVenvName = debugInfoDict["VirtualEnv"]
334 with contextlib.suppress(KeyError): 334 dbg.setScriptsHistory(debugInfoDict.get("ScriptName", ""))
335 dbg.setScriptsHistory(debugInfoDict["ScriptName"])
336 dbg.setArgvHistory(debugInfoDict["CommandLine"]) 335 dbg.setArgvHistory(debugInfoDict["CommandLine"])
337 dbg.setWdHistory(debugInfoDict["WorkingDirectory"]) 336 dbg.setWdHistory(debugInfoDict["WorkingDirectory"])
338 dbg.setEnvHistory(debugInfoDict["Environment"]) 337 dbg.setEnvHistory(debugInfoDict["Environment"])
339 dbg.setExcList(debugInfoDict["Exceptions"]) 338 dbg.setExcList(debugInfoDict["Exceptions"])
340 dbg.setExcIgnoreList(debugInfoDict["IgnoredExceptions"]) 339 dbg.setExcIgnoreList(debugInfoDict["IgnoredExceptions"])
341 dbg.setAutoClearShell(debugInfoDict["AutoClearShell"]) 340 dbg.setAutoClearShell(debugInfoDict["AutoClearShell"])
342 dbg.setTracePython(debugInfoDict["TracePython"]) 341 dbg.setTracePython(debugInfoDict["TracePython"])
343 dbg.setAutoContinue(debugInfoDict["AutoContinue"]) 342 dbg.setAutoContinue(debugInfoDict["AutoContinue"])
344 dbg.setExceptionReporting(debugInfoDict["ReportAllExceptions"]) 343 dbg.setExceptionReporting(debugInfoDict.get("ReportAllExceptions", False))
345 dbg.setEnableMultiprocess(debugInfoDict["EnableMultiprocess"]) 344 dbg.setEnableMultiprocess(debugInfoDict["EnableMultiprocess"])
346 dbg.setMultiprocessNoDebugHistory(debugInfoDict["MultiprocessNoDebug"]) 345 dbg.setMultiprocessNoDebugHistory(debugInfoDict["MultiprocessNoDebug"])
347 dbg.setEnableGlobalConfigOverride(debugInfoDict["GlobalConfigOverride"]) 346 dbg.setEnableGlobalConfigOverride(debugInfoDict["GlobalConfigOverride"])
348 if not self.__isGlobal: 347 if not self.__isGlobal:
349 project.setDbgInfo( 348 project.setDbgInfo(
354 debugInfoDict["Exceptions"], 353 debugInfoDict["Exceptions"],
355 debugInfoDict["IgnoredExceptions"], 354 debugInfoDict["IgnoredExceptions"],
356 debugInfoDict["AutoClearShell"], 355 debugInfoDict["AutoClearShell"],
357 debugInfoDict["TracePython"], 356 debugInfoDict["TracePython"],
358 debugInfoDict["AutoContinue"], 357 debugInfoDict["AutoContinue"],
359 debugInfoDict["ReportAllExceptions"], 358 debugInfoDict.get("ReportAllExceptions", False),
360 debugInfoDict["EnableMultiprocess"], 359 debugInfoDict["EnableMultiprocess"],
361 debugInfoDict["MultiprocessNoDebug"], 360 debugInfoDict["MultiprocessNoDebug"],
362 debugInfoDict["GlobalConfigOverride"], 361 debugInfoDict["GlobalConfigOverride"],
363 ) 362 )
364 363

eric ide

mercurial