Postgresql Debugger 如何啟用 === ## 1.修改postgresql.conf檔 通常會在安裝資料夾下的data資料夾裡面 ![](https://i.imgur.com/aJLGZw6.png) 使用編輯器開啟,搜尋keyword:'shared_preload_libraries' ![](https://i.imgur.com/6BnjThI.png) 將#拿掉,並在單引號內加入 $libdir/plugin_debugger.dll ![](https://i.imgur.com/ck8XXJg.png) ## 2.啟動postgresql server 若已經開啟則關掉重開 進入想要debug的DB,開啟Query tools後 輸入並執行下列指令(使用DB內的api) ```gherkin= CREATE EXTENSION pldbgapi; ``` ![](https://i.imgur.com/kuCmSBc.png) 針對想debug的method按右鍵,點debug ![](https://i.imgur.com/U7E4mqa.png) 便會成功出現debug視窗,此時即可輸入參數進行debug ![](https://i.imgur.com/DAPzUPb.png) ###### tags: `Postgresql`