0

I am trying to get debug of PL/SQL working with Visual Studio Code and the Oracle SQLDeveloper extension.

To keep it simple, I have a single user with single stored procedure that I want to debug.

I have created the database ACL, added connect and resolve privileges, and assigned to my client static LAN IP address in a range known to VS Code settings.

There are no firewall rule issues. I have disabled the firewall on both the database server and my client machine for testing purposes.

Compiling my stored procedure for debug is successful.

Here is where my issue is:

When I try the Run or Debug button (and choose either) nothing happens. I am expecting a form to prompt me to generate the debug stub and offer me the Debug button.

enter image description here

My user has been granted connect and resource roles as well as the debug connect session privilege.

VS Code is Version: 1.99.1 (latest as of now) SQL Developer Extension 25.1.0 (latest as of now) My client is MacOS Sequoia 15.3.2 (latest as of now) Oracle Database is EE 19.21 (this should not be relevant to the issue)

Updated (in response to Jeff's comment):

DBMS_NETWORK_ACL:

BEGIN
   DBMS_NETWORK_ACL_ADMIN.create_acl (acl           => 'debug_permissions.xml', -- or any other name
                                      description   => 'DEBUG Access',
                                      principal     => 'HR', -- the database user name trying to access the network resource
                                      is_grant      => TRUE,
                                      privilege     => 'connect',
                                      start_date    => NULL,
                                      end_date      => NULL);
END;
/

COMMIT;

BEGIN

   DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE (acl         => 'debug_permissions.xml',
                                         principal   => 'HR',
                                         is_grant    => TRUE,
                                         PRIVILEGE   => 'connect');
END;
/

COMMIT;

BEGIN
   DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE (acl         => 'debug_permissions.xml',
                                         principal   => 'HR',
                                         is_grant    => TRUE,
                                         privilege   => 'resolve');
END;
/

COMMIT;

BEGIN
   DBMS_NETWORK_ACL_ADMIN.assign_acl (acl          => 'debug_permissions.xml',
                                      HOST         => '192.168.50.214', /*can be computer name or IP , wildcards are accepted as well for example - '*.us.oracle.com'*/
                                      lower_port   => 4000,
                                      upper_port   => 4999);
END;
/

commit;

grant debug connect session to hr;
4
  • please update your question with an example stored procedure or function you are trying to debug, the ACL you created, and the version of Oracle Database you are using. Full example here - thatjeffsmith.com/archive/2024/10/… Commented Apr 15 at 19:35
  • so you don't get a new document opened labeled 'DEBUGGING_DEBUGGER.run' ? Commented Apr 17 at 12:18
  • @thatjeffsmith - that is correct. I am going to test trying it from a Windows machine with all other things being equal and see if it is Mac only issue. Commented Apr 18 at 10:59
  • 1
    I would bump up the logging level to TRACE in VS Code settings, and then look for errors in the Output panel (with filter set to SQL Developer) Commented Apr 21 at 15:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.