I tried the following scenario, which seems to work fine:
1. Create a new Program Window with the following code:
create or replace function debug_test return varchar2 is
begin
return('Hello World');
end debug_test;
2. Execute the Program Window to compile the function.
3. Right-click on the function and select "Test" from the popup menu.
4. Step through the code. The line "return('Hello World')" is displayed.
5. Switch back to the Program Window and change the text to "return('Changed')".
6. Execute the Program Window to compile the changed function.
7. Switch back to the Test Window and start the debugger again. The line with "return('Changed')" is now correctly displayed.
Can you try this same scenario?