如何使用 TOAD 从在 Oracle 数据库中编译的 Java 中查看 System.out.println?
How to see System.out.println from within Java compiled in the Orcale DB using TOAD?
整个过程几乎正常工作,但我想针对特定问题添加一些调试。
for (int j = 0; j < end.length; j++) {
String remove = end[j].trim();
if (cName.endsWith(remove)) {
mPhone = cName.substring(0, cName.length() - remove.length()).trim();
}
System.out.println(cName + ", " + remove + ", " + mPhone);
}
我应该在哪里看到输出?它不在“脚本输出”选项卡、“DBMS 输出”选项卡或“常规”选项卡中。
自从我自己调查以来已经有一段时间了,但根据 this other post,您可能需要执行
set serveroutput on size 10000
exec dbms_java.set_output(10000)
然后尝试执行。
整个过程几乎正常工作,但我想针对特定问题添加一些调试。
for (int j = 0; j < end.length; j++) {
String remove = end[j].trim();
if (cName.endsWith(remove)) {
mPhone = cName.substring(0, cName.length() - remove.length()).trim();
}
System.out.println(cName + ", " + remove + ", " + mPhone);
}
我应该在哪里看到输出?它不在“脚本输出”选项卡、“DBMS 输出”选项卡或“常规”选项卡中。
自从我自己调查以来已经有一段时间了,但根据 this other post,您可能需要执行
set serveroutput on size 10000
exec dbms_java.set_output(10000)
然后尝试执行。