On development environment, in order to avoid adding debug information manually, I used to set optimization level to 1 in "Database/PL/SQL compiler" preferences.
I also set ALL to ENABLE.
On compilation, I got the following warning "Error: PLS-06015: parameter PLSQL_DEBUG is deprecated; use PLSQL_OPTIMIZE_LEVEL = 1"
There is an easy workaround (not to set ALL to DISABLE), but it would be nice to get it fixed, in order to focus on user-code relative messages.
I got this on SQL Developper 18.1, but the issue has already been tracked a couple of years ago by @user13256715 in the following thread
You know the default COMPILE action in the code editor is to COMPILE FOR DEBUG, yes?
By the way, when I do
alter session set PLSQL_OPTIMIZE_LEVEL=1
I get no such error or warning.
And when I do a compile, I get no such warning or message/
How are you compiling your code?