1PROCEDURE my_proc (p_id IN NUMBER, p_emp IN emp%ROWTYPE) IS
2BEGIN
3 APEX_DEBUG.ENTER('my_proc', 'p_id', p_id, 'p_emp.id' , p_emp.id);
4 APEX_DEBUG.LOG_PAGE_SESSION_STATE; -- saves all items
5 MY_PACKAGE.MY_FUNCTION;
6 APEX_DEBUG.LOG_DBMS_OUTPUT(p_prefix=>'[Debug] ');
7 APEX_DEBUG.INFO('my_proc successfully finished.');
8EXCEPTION
9 WHEN OTHERS THEN APEX_DEBUG.ERROR('Critical error %s', sqlerrm);
10 RAISE;
11END;