Re: Debugger line numbering is off by one

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Debugger line numbering is off by one
Дата
Msg-id CA+OCxowfSryzjNHi8AMdA13gzEwmpBC3YL_58PJLFHCMxaQfag@mail.gmail.com
обсуждение исходный текст
Ответ на Debugger line numbering is off by one  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Debugger line numbering is off by one  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgadmin-hackers
On Wed, Apr 25, 2012 at 11:24 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
>
> The hack that was removed skipped an initial newline when counting line
> numbers. The PL/pgSQL debugger has a similar hack, but it didn't get the
> memo that it was removed in the backend, so the green current line marker is
> off by one when connected to a 9.1 server. Attached is a patch to fix that.

Hi

It looks fine, except that the "Paused at line" message in the status
bar is still off by one. I tried using the offset you calculated there
as well, and things started getting really weird (like, starting on
line -15, then after single stepping, going back to being 1 off). I
assume that the offset is being used there before it's actually
calculated, but don't have time to play further right now.

Can you fix it please?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Debugger line numbering is off by one
Следующее
От: Dave Page
Дата:
Сообщение: pgAdmin III commit: Silence a GCC warning.