This example shows the following code for debugging an application on tstHost.

Window 1 code:
% debugproxy -port 2286 start jdb -password
. ( wait until a debug agent starts up and
. contact this proxy... when it does, jdb
. starts up automatically and you can set
. breakpoints and debug the object, as follows:)
> suspend
> stop in myCode:updateAccount
> resume
> ...
% loadjava -u SCOTT/TIGER -v -f -r myCode.java
SQL> call dbms_java.set_compiler_option('', 'debug', 'true');
SQL> exit
> load SCOTT:myCode

Window 2 code:
SQL> grant JavaDebugPriv to SCOTT
SQL> call dbms_java.start_debugging('tstHost',2286,30);