| От | Mike Toews |
|---|---|
| Тема | PL/Python debugging - line numbers |
| Дата | |
| Msg-id | 4A5D17A3.8040807@sfu.ca обсуждение исходный текст |
| Ответы |
Re: PL/Python debugging - line numbers
|
| Список | pgsql-general |
Hi, Debugging PL/Python isn't as easy as with PL/pgSQL, as it appears I can't see line numbers where errors occur. For example: ERROR: plpython: function "evaluate_something" failed DETAIL: <type 'exceptions.TypeError'>: sequence index must be integer, not 'str' The location of this type of exception is difficult to spot out in 366 lines of code. Is there a way to report where the error occurred? I'm using 8.3.7 via apt-get on Ubuntu Hardy LTS. I see the same message on the server using pgsql and in pgAdmin III on a different machine. I've tried using such options as "set client_min_messages to debug;" but this doesn't change the details of the error. Thanks, -Mike
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера