Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug DB2 stored proc

Tags:

db2

toad

I am using IBM DB2 with Toad. I have a stored procedure that I need to debug.Any tutorial or videos on how to debug a stored procedure ? Echo statement won't work. One way would be to create a temp table, dump data in to it and open cursor at the end. But any alternative to this ?

like image 201
Cannon Avatar asked Jul 13 '26 13:07

Cannon


1 Answers

I can't answer how to do this with Toad, but the (free) IBM Data Studio includes the ability to interactively debug stored procedures. You can set breakpoints, step through your procedure, see variable values during execution, etc.

like image 86
Ian Bjorhovde Avatar answered Jul 18 '26 07:07

Ian Bjorhovde