Re: Trouble with getting debugger to work

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Alex Kim <kimalex557(at)gmail(dot)com>
Cc: "pgadmin-support lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: Trouble with getting debugger to work
Date: 2019-07-01 04:46:39
Message-ID: CAFOhELdcQF0seHLs6Ubtby7jb1RY--xG0ojRMt0rMVT5QYs8Vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi Alex,

On Sat, Jun 29, 2019 at 3:27 PM Alex Kim <kimalex557(at)gmail(dot)com> wrote:

> Hi I am having trouble getting the debugger to work. I have installed the
> debugger on edb postgres 10, 11, and standalone 11. Whenever I try to use
> the debugger on pgadmin4, I either get a (TypeError: 'NoneType' object does
> not support item assignment) if I try to debug directly or (TypeError:
> 'NoneType' object has no attribute '__getitem__') when i try to set a
> breakpoint.
>
> I have attached a screenshot of the stacktrace and some of the functions
> involved and the text of the TraceBacks. Any and all help would be greatly
> appreciated.
>
> PgAdmin 4.4.9
> Mac OS X 10.4.5
> PgAdmin 10.9.2 / 11. 4. 2
> Python 2.7
>
> NoneType' object has no attribute '__getitem__'
> Traceback (most recent call last):
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py",
> line 1813, in full_dispatch_request
> rv = self.dispatch_request()
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py",
> line 1799, in dispatch_request
> return self.view_functions[rule.endpoint](**req.view_args)
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask_login/utils.py",
> line 261, in decorated_view
> return func(*args, **kwargs)
> File
> "/Users/ak/Desktop/pgadmin4/web/pgadmin/tools/debugger/__init__.py", line
> 768, in initialize_target
> 'function_name': de_inst.function_data['name'],
> TypeError: 'NoneType' object has no attribute '__getitem__'
>
> 'NoneType' object does not support item assignment
> Traceback (most recent call last):
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py",
> line 1813, in full_dispatch_request
> rv = self.dispatch_request()
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask/app.py",
> line 1799, in dispatch_request
> return self.view_functions[rule.endpoint](**req.view_args)
> File
> "/Users/ak/.virtualenvs/pgadmin4/lib/python2.7/site-packages/flask_login/utils.py",
> line 261, in decorated_view
> return func(*args, **kwargs)
> File
> "/Users/ak/Desktop/pgadmin4/web/pgadmin/tools/debugger/__init__.py", line
> 756, in initialize_target
> de_inst.function_data['args_value'] = data
> TypeError: 'NoneType' object does not support item assignment
>
> Please log this issue @ https://redmine.postgresql.org/projects/pgadmin4/,
I can reproduce this issue with Python 2.7 but not with Python 3.7.
So, for now, you can use Python 3.7 to use the debugger.

Thanks,
Khushboo

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Khushboo Vashi 2019-07-01 04:51:40 Re: Autocomplete
Previous Message Alex Kim 2019-06-28 22:58:09 Trouble with getting debugger to work