Print Thread
Turning off debugger
#64113 08/03/22 03:55 PM
Joined: Aug 2022
Posts: 1
L
Member
OP Offline
Member
L
Joined: Aug 2022
Posts: 1
We have the option checked that does not automatically turn on debugger with compile. We turn it on manually, usually without recompiling first. After debugging, we have been asked by our DBA to turn off debugger. When I try to uncheck the option it does not turn it off. The only way I can find to turn it off is compiling. Most of the time we do not want to do that. Is there a way to uncheck debug without recompiling?

Thanks.
Lisa

Re: Turning off debugger
Lisa Boike #64114 08/04/22 08:56 AM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
When this option is enabled, PL/SQL Developer will compile program units while the debug option is set for the session. The only way to remove the debug information is through a script that recompiles these program units when the debug option is not applied. For example:

alter session set plsql_debug=false;
alter procedure abc compile;
alter procedure def compile;
...


Marco Kalter
Allround Automations
Re: Turning off debugger
Lisa Boike #64120 08/06/22 11:41 AM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
Member
Joined: Sep 2003
Posts: 387
London, UK
You can recompile affected objects with something like this:

SQL Query
begin
    for r in (
        select distinct 'alter '||replace(ps.type,' BODY')||' '||ps.name||' compile' as compile_cmd
        from   user_plsql_object_settings ps
        where  ps.plsql_debug = 'TRUE'
    )
    loop
        execute immediate r.compile_cmd;
    end loop;
end;
/

You could even save that as a script and add it as a menu bar tool (Configure > Tools, set type to 'Session').

Out of interest, why would the DBA care what debug settings you use in dev/test environments?


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.049s Queries: 14 (0.012s) Memory: 2.5079 MB (Peak: 3.0430 MB) Data Comp: Off Server Time: 2024-05-25 10:48:48 UTC
Valid HTML 5 and Valid CSS