You can use the debugger during the development of SQL stored procedures, triggers, event handlers, and user-defined functions.
See SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Debugging procedures, functions, triggers, and events > Introduction to the SQL Anywhere debugger.