ASA SQL User's Guide
Debugging Logic in the Database
Tutorial: Getting started with the debugger
This tutorial shows you how to start the debugger, connect to a database, and attach to a connection for debugging. It uses the Adaptive Server Anywhere sample database.