ASA SQL User's Guide
Debugging Logic in the Database
This tutorial describes how to start the debugger, how to connect to a database, how to debug a simple stored procedure, and how to debug a Java class.
Lesson 1: Connect to a database and start the debugger
Lesson 2: Debug a stored procedure
Lesson 3: Debug a Java class