This is a technique I've used in Tapestry and people like it.

In the HTML, the excluded frames are invisible, but a toggle can make
them visible (in a muted grey).

Tapestry has a concept of an application package, and highlights those
frames in bold blue so they stick out. That makes a big difference
(but requires rich text output, like in a browser).

Further, Tapestry looks for a particular stack frame and assumes
anything above it is also uninteresting.

On Mon, Jul 20, 2009 at 8:53 PM, Phil Hagelberg<[email protected]> wrote:
>
>
> One common criticism of Clojure is that the stack traces are... less
> than helpful. While it's true that the verbosity is great if you're
> debugging Clojure itself, I've found that more often it just obscures
> the important lines.
>
> I've added a feature to swank-clojure that dims the irrelevant lines,
> and this seems to make the important ones jump out much better.
>
> I'm currently using this heuristic to decide which lines to dim, if
> you'll pardon the horrible Emacs regex syntax:
>
>    "[0-9]+: \\(clojure\.\\(core\\|lang\\).*\\)"
>    "[0-9]+: \\(java.*\\)"
>    "[0-9]+: \\(swank.*\\)"
>
> If you'd like to try this out, please pull from
> git://github.com/technomancy/swank-clojure.git and let me know what you
> think. Are there other patterns that should be dimmed as well?
>
> -Phil
>
> >
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to