How to debug JSTL?

Hedge picture Hedge · Aug 4, 2011 · Viewed 18.6k times · Source

I'm using SpringSource Tool Suite (with Roo) and have some success. What bothers me though is that I don't know how to debug tag library-stuff.

I may add breakpoints but it never stops at them.

What I'm looking for is a dump of all current variables in the context.

Up until now I did something like:

<c:forEach items="${data}" var="item">
    <c:out value="${item}"></c:out><br />
</c:forEach>

Sadly, that's difficult to read and also not pretty straightforward.

What can I do to improve this?

Answer

Venkat picture Venkat · Aug 2, 2013

this was always tricky, for future visitors of this question adding my 2 cents

if you put a break point on the jsp in Eclipse on the line

Eclipse debug for JSTL