【问题标题】:SQL Developer debugger not stepping into in anonymous blockSQL Developer 调试器未进入匿名块
【发布时间】:2022-10-19 22:28:27
【问题描述】:

我正在尝试调试 PLSQL 中的匿名代码块。

DECLARE
    l_pls   PLS_INTEGER;
BEGIN
    NULL;
    l_pls := 2222222222;
EXCEPTION
    WHEN OTHERS THEN
        dbms_output.put_line(dbms_utility.format_error_backtrace);
        dbms_output.put_line(dbms_utility.format_error_stack);
        dbms_output.put_line(sqlerrm);
END;

但是,当按下 CTRL+SHIFT+F10 时(在 tools-preferences-debugger 中选择 step into 选项后),调试器不会在第一行停止等待,而是执行块。

Connecting to the database RBIP.
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( 'XX.XX.XX.XX', 'XXXXX' )
Debugger accepted connection from database on port XXXXX.
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.DISCONNECT()
ORA-06512: at line 5
ORA-01426: numeric overflow
ORA-01426: numeric overflow
Process exited.
Disconnecting from the database RBIP.
Debugger disconnected from database.

我怎样才能让调试器工作?

【问题讨论】:

    标签: sql oracle plsql oracle-sqldeveloper plsqldeveloper


    【解决方案1】:

    错误是

    ORA-01426: 数值溢出

    PLS_INTEGER 数据类型的最大值为 2,147,483,647 (2^31 – 1)。

    使用NUMBER 数据类型。

    【讨论】:

      猜你喜欢
      • 2014-09-30
      • 2015-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-25
      • 2011-05-12
      • 2017-09-02
      • 1970-01-01
      相关资源
      最近更新 更多