Using pldebugger with Postgres.app
The pldebugger extension is a Procedural Language Debugger Plugin for PostgreSQL.
It allows connecting with pgAdmin or other compatible clients to interactively debug PL/pgSQL functions.
We are offering pldebugger as an additional download for Postgres.app.
Installing pldebugger for Postgres.app
- Download the pldebugger installer package from https://postgresapp.com/extensions/
- Double click the package and go through all steps to install the extension
- Find the
postgresql.conf file for your server
- open Postgres.app
- click the “Server Settings…” button
- find the “Config” file path and click “Show”
- open the config file with your favorite text editor
- Update configuration parameters:
- add pldebugger to shared preload libraries, eg.
shared_preload_libraries = 'pldebugger'
- Restart the PostgreSQL server
- Connect to the database you want to use pldebugger
- Activate the extension:
CREATE EXTENSION pldbgapi;
Done! You can now connect your client to use the debugger for PL/pgSQL.
You can find the full documentation for pldebugger on GitHub and its usage in the pgAdmin documentation.