Re: Trouble with getting debugger to work

Поиск
Список
Период
Сортировка
От Khushboo Vashi
Тема Re: Trouble with getting debugger to work
Дата
Msg-id CAFOhELdcQF0seHLs6Ubtby7jb1RY--xG0ojRMt0rMVT5QYs8Vw@mail.gmail.com
обсуждение исходный текст
Ответ на Trouble with getting debugger to work  (Alex Kim <kimalex557@gmail.com>)
Список pgadmin-support
Hi Alex,


On Sat, Jun 29, 2019 at 3:27 PM Alex Kim <kimalex557@gmail.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

В списке pgadmin-support по дате отправления:

Предыдущее
От: Alex Kim
Дата:
Сообщение: Trouble with getting debugger to work
Следующее
От: Khushboo Vashi
Дата:
Сообщение: Re: Autocomplete