views:

1078

answers:

2

Hi guys,

I have the following situation: I have a java code launching a stored procedure. What I want is to launch the java code, and when arriving into the stored procedure, to start debuggin it using Toad.

Is this possible?

Thanks alot.

Best regards, Corneliu

+1  A: 

I'm afraid it is not possible. The code will be executed in the session of the Java-Code, not in your Toad session.

EDIT:
Writing some trace in your application might be sufficient to track down the problems.

TOAD Debugger:
Looks like you need a special license, have a look at asktoad which lists the possible reasons if the menu is disabled.

If your license allows debugging, this article might be interesting to allow debugging with Oracle 10.

Peter Lang
Yes, this is possible.
CC
I mean, is it sufficient for you to debug the procedure by calling it from Toad?
Peter Lang
Yes, I think is good enough.....To use Toad in Debug mode, I need a Toad with a special licence?Because my Toad, have the DEBUG menu disabled.
CC
A: 

Oracle offer their own IDE, SQL Developer, which - usually for Oracle - is free. I know you probably don't want to install two IDEs on your desktop but I mention it because it supports debugging of PL/SQL procedures. Find out more.

It is possible to use DBMS_DEBUG by hand but I wouldn't advise it unless you have a lot of time and patience. Oracle intended it as an API for tool vendors rather than something for real people.

Bear in mind that however you initiate a debugging session you need an account with the DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE privileges.

APC