debugging loop variable

sthaler

Member²
When I use the same loop variable in a second (not nestet) loop the debugger displays in the second loop the value from the fist loop, but it is using correctly the second one.
Example:
-- first loop
for i in 1 .. 4 loop
...
end loop;
-- second loop
for i in 1 .. 4
-- Debugger display i = 4
end loop;
----------------------------------

Is it better to use always different names i1, i2...)?

Thanks
Sepp Thaler
 
The Oracle Debug API does indeed get confused when using the same variable for different for-loops. For debugging purposes it would be a good idea to use unique variables for each loop like you suggest.

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