Debug

What is the easiest way to debug code for Roku. Is there any way to step thru lines to see what is happeing?
Thanks

http://sdkdocs.roku.com/display/sdkdoc/ … ug+Console