Hi,
SQL Anywhere provide debugger to debug SQL stored procedures, triggers, event handlers, and user-defined functions you create. Simply start SQL Anywhere SQL Central connect to a database server, then click Mode -> Debug. The detailed information could refer to http://dcx.sap.com/index.html#sqla170/en/html/8196f2426ce210149629e49afd4e0833.html
Best regards,