Return a string containing a crash report.
(self,traceback)
| 72 | ) |
| 73 | |
| 74 | def make_report(self,traceback): |
| 75 | """Return a string containing a crash report.""" |
| 76 | |
| 77 | sec_sep = self.section_sep |
| 78 | # Start with parent report |
| 79 | report = [super(IPAppCrashHandler, self).make_report(traceback)] |
| 80 | # Add interactive-specific info we may have |
| 81 | rpt_add = report.append |
| 82 | try: |
| 83 | rpt_add(sec_sep+"History of session input:") |
| 84 | for line in self.app.shell.user_ns['_ih']: |
| 85 | rpt_add(line) |
| 86 | rpt_add('\n*** Last line of input (may not be in above history):\n') |
| 87 | rpt_add(self.app.shell._last_input_line+'\n') |
| 88 | except: |
| 89 | pass |
| 90 | |
| 91 | return ''.join(report) |
| 92 | |
| 93 | #----------------------------------------------------------------------------- |
| 94 | # Aliases and Flags |
nothing calls this directly
no outgoing calls
no test coverage detected