Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running SQL within same session as my SQLDeveloper debugger

This seems an obvious requirement/use-case to me, but I haven't found anything online.

I'm debugging a PL/SQL Stored Proc which stores data in pseudo-temporary tables along the way (they are just regular tables, whose content is wiped at the end of the transaction). I'd like to inspect these values as I go. However, there seems to be no way to run arbitrary SQL within the same session that is debugging the stored proc. If I try select * from temp_..., I get no rows back and I can see that I have more than one connection open to the database.

Is there a way to do this?

like image 877
matt freake Avatar asked Dec 01 '25 03:12

matt freake


1 Answers

I doubt there is a way to do exactly what you asked. How about either a) committing the rows you're working with, querying them from another session during debug, then truncating your table when finished or b) add a default false debug parameter to your stored proc, then output what you wish when it is set true.

like image 190
Mr. Kite Avatar answered Dec 04 '25 22:12

Mr. Kite