You can make concrete properties instead of abstract ones which
makes the debugging easier. It's what I usually do.

        e.g. instead of:

        public abstract PersonSummary getThisChild();

        do

        private PersonSummary fThisChild;
        public setThisChild(p PersonSummary) {
                fThisChild = p;
        }
        Public PersonSummary getThisChild() {
                Return fThisChild;
        }

> -----Original Message-----
> From: Alan Chandler [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 12, 2005 10:38 AM
> To: [email protected]
> Subject: Re: Debugging Abstract Classes
> 
> On Sunday 11 September 2005 17:41, Geoff Longman wrote:
> > You can put breakpoints in your abstract class as per normal and it
> > should work. You can't debug into the code added by Tapestry at
> > enhancement time as there is no source code generated by the
> > enhancement process.
> >
> > (YMMV - I'm an eclipse user so my experience debugging Tapestry apps
> > is, of course, Eclipse related).
> 
> I'm using Eclipse too - on linux.
> 
> I was looking to check what exactly was happening in some cases - and
> since I
> have been avoiding using component specifications, I have a number of
> classes
> that are purely abstract.
> 
> I know I can put breakpoints on actual code (and I have), but I have a
> number
> of classes of the form supporting a @Foreach component inside the html
> template.  It would be nice to get to see the values of my
> "PersonSummary" (or equivalent for other components) at each iteration
> round
> the loop"
> 
> @ComponentClass
> public abstract class Children extends BaseComponent {
> 
>       @Parameter
>       public abstract List<PersonSummary> getChildList();
> 
>       public abstract void setThisChild(PersonSummary thisChild);
>       public abstract PersonSummary getThisChild();
> 
> }
> 
> 
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to