Environment Variable
In your application
export ORA_DEBUG_JDWP=host=172.17.0.1;port=4000
In SQL Developer
Mouse-right-click on your Connection and select ‘Remote Debug.’
https://www.thatjeffsmith.com/archive/2012/05/using-sql-developer-to-debug-your-anonymous-plsql-blocks/