Re: Some minor patches / E stack traces
Thomas Leonard <tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]> Fri, 26 Aug 2011 11:55:14 +0100
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On 2011-08-24 16:19, Kevin Reid wrote: > On Aug 24, 2011, at 10:17, Thomas Leonard wrote: > >> Some minor fixes I've been using for a while: >> >> >> http://gitorious.org/~tal-itinnov/repo-roscidus/it-innovation/commit/e14b3b40363499712b93680c09d0a730e6b48271 >> Give a shorter stack-trace from ELoader if the source file is missing > > Is this really worth the additional complexity of the code? Maybe. I think that part of the problem is that E stack traces are hard to read. There's a lot of information (which is useful), but it's hard to scan by eye. There's a patch on my "hacks" branch that colours the stack traces: http://gitorious.org/~tal-itinnov/repo-roscidus/it-innovation/commit/f3da8f91a5a4ce9aebb8d484780a98fde389de05 "." lines are highlighted in yellow and <file:...> references are highlighted in green. So, if you want to know *what* calls were made (including values), just look at the yellow lines. If you want to to know the *types* involved, look at the white text, and if you want to see source locations, look for green text. Seems to help a bit (but assumes output is to an ANSI terminal). -- Dr Thomas Leonard IT Innovation Centre Gamma House, Enterprise Road, Southampton SO16 7NS, UK tel: +44 23 8059 8866 mailto:tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected] http://www.it-innovation.soton.ac.uk/