Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anTrA-0007Ed-G8 for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 16:29:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anTr9-0001TN-IO for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 16:29:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anTqv-0001Eh-Ve for pgadmin-hackers@postgresql.org; Tue, 05 Apr 2016 16:29:18 +0000 Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1anTqo-0008Bv-Dd for pgadmin-hackers@postgresql.org; Tue, 05 Apr 2016 16:29:17 +0000 Received: by mail-ig0-x22a.google.com with SMTP id g8so18783295igr.0 for ; Tue, 05 Apr 2016 09:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=8Ns4RGGfaapduLez1rxF7j8d1x7tQ3WpslPG3WvvzQQ=; b=wP4pbuUlCLJGc/tQBEbPN6vKTLepxZjv3Tnk/urOd3YqwJxtuMfJT/8WBG2mKKtkxK W/pxvcNht0LRlQLa3UZ1R8NEYYL6zvWzHC+98kQdVKn6MSbr0A3whmajgmC197FJTFAE o8iZQxNiZ3DQ9mjzrYS+UNItJHXfkhzl7v2VZ8QuHlbcIWWZCHcXYzizAbagBAVigbZv qKROxcj/xz0SWM8VfR9kpMzWcNjiNT7fm9cgEVHeNRXTVEfWwD155V+ADWJ6slt9OWdP Q2M8qgVyRrTwJdcY9oSsn0eV+FIW8WHvk95/L3Gc0+oFc9bbbpBaQKcUqOvmjc0KK2Sa vHGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=8Ns4RGGfaapduLez1rxF7j8d1x7tQ3WpslPG3WvvzQQ=; b=NrGXx6jFf4yqk2CgG6EsbmccYF7QapcpJYjwAfrBr2w6FKYI6f03fYNNQAp43maeTg v4jJj8g6rszbNV2K1nsbtIPmcujTvIw9h1VWeXLam9IyUV4ErmMJESu4Y19GvEo/MSWt 8hNw9gHru79UGjufrRt/l1/EfXG2NO702gPsoQ0sV+gVyzTUXatiWZf9u4EIs3NsNiPK qxAOIe+KeYa5ecMHYKiWhbHTpWfzJbIf17tqEvVlQ83AQXaF0PE/PhBtkciUutkl1U1x YtYGhhfEzuyA24t0hGsK13oLG6Hrv6f4iowDqV+L2Kf7RlNQX/lfPGPgfwSD+KojCpXv b+xQ== X-Gm-Message-State: AD7BkJKPrevlXDnT/6Zfzk8T81sYTFDfdI8Ll5uxM2PkgnbpzOcrfDp8WHPIzE20XSRNpR8bzJMpL/RdpwOX0w== MIME-Version: 1.0 X-Received: by 10.50.66.171 with SMTP id g11mr15287918igt.96.1459873748077; Tue, 05 Apr 2016 09:29:08 -0700 (PDT) Received: by 10.64.105.131 with HTTP; Tue, 5 Apr 2016 09:29:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Apr 2016 17:29:08 +0100 Message-ID: Subject: Re: [pgAdmin4][Debugger]: Initial Patch From: Dave Page To: Neel Patel Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Tue, Apr 5, 2016 at 12:40 PM, Neel Patel wrote: > Hi, > > Please find attached debugger v1 patch. To test this patch we need to apply > the "function" module patch submitted by Khushboo. > > For the debugger functionality, direct and indirect debugging is working as > per pgadmin3 except below TODOs. > > Below are the TODOs which will be submitted in next patch along with the > fixed review comments. > > For the direct debugging, 'NULL' and 'Expression' column value should be > validated before pressing the debug button. > User can deposit the value of input arguments and local variable but need to > be > validated against respective data types. > Currently we have tested for plpgsql functions only, We need to test against > EDB SPL functions and trigger functions. > For the direct debugging, once the execution is completed, only > "Continue/Restart" button will be enabled and user should allow to restart > the debugging with same function and previous values. > Values entered by the user in input dialog during direct debugging should be > saved. > > > Currently we have tested this patch with PostgreSQL v9.5. > > Do review it and let us know for the comments. I just get a blank tab when I try to debug something. I do see the params dialogue, but then nothing. Note: - I have Akshay's Query Tool patch applied, and am running from git master - PostgreSQL 9.4, with the debugger plugin in the public schema. - Various functions in the pem schema tested, both with and without parameters. - Both direct and indirect debugging have the same issue. - No errors seen in the console, except when closing the debugger tab: 2016-04-05 17:27:37,720: INFO werkzeug: 127.0.0.1 - - [05/Apr/2016 17:27:37] "GET /debugger/close/8569717 HTTP/1.1" 500 - Traceback (most recent call last): File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/Users/dpage/git/pgadmin4-demo/web/pgadmin/tools/debugger/__init__.py", line 397, in close session_id=obj['session_id']) KeyError: 'session_id' Thanks. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers