cancel
Showing results for 
Search instead for 
Did you mean: 

Debug API for SQL Anywhere

Former Member
3,468

I see that a product claims to have a debugger for SQL Anywhere. How is this achieved? Is there a debug API for SQL Anywhere?

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant

SQL Anywhere has had a stored procedure and trigger debugger since Version 6 was released in 1998. AFAIK there is no debug API, nor has there been many (any?) requests for it.

You get the debugger via Sybase Central; here's how, using Version 11:

(1) Open Sybase Central and connect to a database.

The "Mode" item will appear in the menu bar.

(2) Click on Mode - Debug.

The "Specify User to Debug" dialog box will appear.

(3) Click OK.

Three "Debugger Details" panes will appear.

(4) Open the source for a procedure or trigger or whatever in the top right pane.

(5) Right-mouse-click on the grey vertical bar to the left of a statement where you want to put a breakpoint... click on Insert Breakpoint.

(6) Run your application, or commands in dbisql, etc., to cause the procedure to be called.

(7) Switch back to Sybase Central... a yellow arrow will appear at the breakpoint.

And so on...

Former Member
0 Kudos

So if I want to code this myself... how would I go about doing it? Are there procedures I can call?

Breck_Carter
Participant
0 Kudos

Like I said, there's no published API, no procedures to call AFAIK. I'm not gonna suggest "reverse engineer" since I think the license agreement forbids that.