How to debug the element?

"yuanbo.cn" <[email protected]> Tue, 9 Oct 2012 09:56:26 +0800 (CST)
Newsgroups gmane.network.routing.click
Message-ID <[email protected]>
Hi,   when I  write my own element, I  meet some wrong. How can I  take efficient ways to debug the element.  


May I use the click_chatter(message)  or  set breakpoint ?  and whether I must run  the click scripts to print the message?


Thanks.