PgAdmin4启用调试

时间:2018-04-26 08:44:52

标签: postgresql debugging pgadmin-4

我无法在pgAdmin4中启用调试。我执行了以下操作: 1.检查$ libdir 2.检查plugin_debugger.dll的locatin 3.更改了postgresql.conf 并且数据库不会重新启动。

有什么建议我做错了吗?

the steps taken

1 个答案:

答案 0 :(得分:1)

1) Download Postgres installer from EnterpriseDB website, they bundle debugger plugin.

enter image description here

2) Make an entry in the postgresql.conf file,

On Unix like systems,

shared_preload_libraries = '$libdir/plugin_debugger.so'

On Windows systems,

shared_preload_libraries = '$libdir/plugin_debugger.dll'

3) Restart your Postgres instance.

4) You have to create pldbgapi Extension in your maintenance database.

Refer given steps,

enter image description here

enter image description here

Click on Save button.

5) Goto your plpgsql function and right click on it, you will see "Debug" option. enter image description here