You can use autonomous transactions inside the trigger - store (and commit) the debugging information into database tables from within the trigger.