Debugger views only first Definition of a local var ...

orca777

Member³
Ver 5.1.3, Oracle 8.1.7.4.50
Hello,
when i define two local blocks with the same name pair of local vars the dbugger show only the val of the first pair, even it's invalid;

Look for i1, i2 Var

Code:
    -- fist Def of i1/i2
    DECLARE
      i1 PLS_INTEGER := 1;
      i2 PLS_INTEGER := 1;

    BEGIN  lc_block := 'bl_assign_jour_val';

      WHILE ( ( i2 < ut_journal.COUNT )  AND ( i1 < ut_old_colset.COUNT ) ) LOOP
        ut_old_colset(i1).HasJournal := FALSE;
        IF ( ut_journal (i2).ColName
 
This is a restriction of the Oracle Debug API. You should try to prevent this situation for debugging purposes, and use unique names within the same stack frame.

------------------
Marco Kalter
Allround Automations
 
Back
Top