Re: Enabling debugger plugin on pgAdmin III

From: Melvin Davidson <melvin6925(at)yahoo(dot)com>
To: "M(dot) Matt Dugan" <matt(at)edgle(dot)com>
Cc: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Subject: Re: Enabling debugger plugin on pgAdmin III
Date: 2015-04-08 19:19:04
Message-ID: 1530792793.2646652.1428520744919.JavaMail.yahoo@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Got it working. It seems the debugger functions need to be generated in each database, not just postgres.
 Melvin Davidson
    Cell 720-320-0155

I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

www.youtube.com/unusedhero

Folk Alley - All Folk - 24 Hours a day
www.folkalley.com

From: M. Matt Dugan <matt(at)edgle(dot)com>
To: Melvin Davidson <melvin6925(at)yahoo(dot)com>
Cc: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>; Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Sent: Wednesday, April 8, 2015 1:43 PM
Subject: Re: [pgadmin-support] Enabling debugger plugin on pgAdmin III

Melvin,
I came to know that, the debugging feature works ONLY IF the function is in pl/pgsql language. Just pay attention to choose that when you create the function (if you are using the GUI to create the function), then you should see the debug menu (both when you right click and the top menu) when you select that function. I assumed you enabled the debugger plugin as instructed in the installation notes (as posted earlier here as well). Good luck!..
M. Matt Dugan,Developer,

On Wed, Apr 8, 2015 at 12:25 PM, Melvin Davidson <melvin6925(at)yahoo(dot)com> wrote:

FWIW, I am confirming the same problem on Windows 7 Home Premium Service Pack 1PostgreSQL 9.2.10, compiled by Visual C++ build 1600, 32-bit Melvin Davidson
    Cell 720-320-0155

Folk Alley - All Folk - 24 Hours a day
www.folkalley.com

From: M. Matt Dugan <matt(at)edgle(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Sent: Tuesday, April 7, 2015 12:44 PM
Subject: [pgadmin-support] Enabling debugger plugin on pgAdmin III

Upon many attempts and hours of search on the help pages as well as the internet, I have not been successful to enable the debugger plugin on pgAdmin III on Windows 7. Here are the things I have done.
1) As suggested on C:\Program Files\PostgreSQL\9.3\doc\installation-notes.html; I edited the postgresql.conf file that was in the data directory as:
shared_preload_libraries = '$libdir/plugin_debugger.dll' (I made sure to removed #) (I tried this both by editing the conf file manually and (in a separate trial) by using the GUI provided by pgAdmin. 

2) I stopped and started the postgresql-x64-9.3 service (which successfully did). I restarted pgAdmin. 
3) On the psql shell, I ran command 'show shared_preload_libraries' and I did see '$libdir/plugin_debugger.dll' there. 
4) On the pgAdmin III, I ran the script 'CREATE EXTENSION pldbgapi;', which created the module under 'Extensions'. Which also added 22 new functions. 
However, I am still unable to see the debug option in the context menu (see the screenshot below) of the functions, and the 'debugging' menu under 'tools' is still inactive. 
My current configuration is pgAdmin III: 1.18.1, PostGRE SQL 9.3.6 windows x64. 
I have also tried PostGRE SQL 9.4.1 (both 32 bit and 64 bit windows versions) prior to this (which included pgAdmin III 1.20 I believe). 
Thanks in advance,
Ps. I also tried to attach a screenshot but the email system denied it. 
Matt 

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Tim Uckun 2015-04-09 23:13:36 Running explain analyze in a transaction
Previous Message M. Matt Dugan 2015-04-08 17:43:08 Re: Enabling debugger plugin on pgAdmin III