I have never tried such a thing, but assuming they are running in some
JVM on the database, and assuming you can configure it to allow
debugging, then it should be possible. How to do that is unknown to
me. I would look for Postgres documentation that might explain.
Good luck.
n