IDE Window: Debugger Options/ru

From Free Pascal wiki
Revision as of 20:41, 13 January 2018 by Useroflazarus (talk | contribs) (Created page with "<noinclude>{{IDE Window: Debugger Options}}<!--- This page may be used as template in other pages ---></noinclude> == Общие == В этой статье описываю...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) español (es) français (fr) português (pt) русский (ru)

Общие

В этой статье описываются настройки в меню Сервис/Параметры, относящиеся к отладчику.

Debugger options general.png

Тип отладчика и путь

Выберите отладчик.

None
Без отладчика. Простое выполнение программы.
GNU debugger (gdb)
GDB не является частью Lazarus. Если вы не используете Windows или Mac OS X (с Xcode), вы должны установить его самостоятельно. Вы должны задать путь к gdb (например /usr/bin/gdb) в расположенном ниже поле.
GNU debugger through SSH
для удаленной отладки. Вы можете использовать подключение по SSH к другому компьютеру и выполнять на нём gdb. Вам необходимо SSH-соединение без ввода пароля. См. в документации по SSH как это можно сделать. Данная функция имеет определенные ограничения. Подробнее...
GDB remote debugger (gdbserver)
для удаленной отладки.

Дополнительный путь поиска

Вы можете добавить дополнительные директории для поиска исходных файлов с именами, содержащимися в отладочной информации исполняемого файла. Это используется для всех проектов.

Общие параметры отладчика

Показывать сообщение при остановке
включите эту опцию для показа уведомления при остановке приложения.
Сбрасывать отладчик после каждого запуска
IDE держит GDB запущенным и повторно использует его. Если вы используете устаревшую версию GDB, которая не поддерживает эту опцию, то вы можете запускать каждый раз новый экземпляр GDB для запуска отладки.

Частные параметры отладчика

Каждый тип отладчика обладает особенными параметрами.

GNU debugger (gdb)

Debugger_Startup_Options
Передача дополнительных аргументов в GDB. При обычном использовании этого не требуется. Это необходимо в том случае, если вы хорошо знаете GDB и желаете изменить его поведение. Использование этого параметра может помешать нормальной работе отладчика
DisableLoadSymbolsForLibraries
Prevent loading any symbols from libraries. (Must not be used, if debugging libraries). There are several gdb issues triggered by symbols loaded from libraries. If you get any error mention "solib", try setting this to true. Also see: GDB_Debugger_Tips#Known_Problems_.2F_Errors_reported_by_the_IDE
EncodeCurrentDirPath/EncodeCurrentFilePath
Experimental. Those option affect the quoting of certain path/filenames when they are given to GDB. Changing the option to the wrong value will stop the debugger from working.
InternalStartBreak
Changes the way the debugger detects your applications, main entry point. It is advised to leave this at default. Other values may be tried, if the debugger report an error "The debugger could not set a breakpoint on the applications entry point".
MaxDisplayLengthForString
For any string (pchar) gdb reads a maximum as specified by this setting. GDB always terminates at the 1st zero. GDB does not really handle pascal strings well.
UseAsyncCommandMode
Mainly supported by gdbserver. Setting should be used for any remote debugging (gdbserver/gdb over ssh). See gdb documentation for "set target async". IF supported by gdb, can also be used for local debugging.
WarnOnInternalError
Default true. If set to False, internal errors by gdb will be ignored by the IDE. Yet that does not change, that gdb did have an internal error, and that debugging may report incorrect data, or dis-behave in anyway. Neither will it prevent follow up error. It simple skips informing the user, yet fixes nothing. Leave on true, unless you get repeatedly the same internal error, and have tested well, that it does not affect you. (Then the warning dialog would be annoying, and you may want to skip it)
TimeOutForEval/WarnOnTimeOut
Read GDB_Debugger_Tips#TimeOuts

Журнал событий

Debugger options eventlog.png

Общие

Eventually logging info should go the the event log, for now it is show in the debug output window.

  • Clear log on run: clear the event log, on each start of the program.
  • Limit line count to: keep only the last lines of output.

Сообщения

The Messages window is usually positioned below the source editor and shown, when building the project. It shows the compiler output and can show the output of external tools.

IDEMessagesWindowFind1.png

See IDE Window: Messages.

Исключения языка

Debugger options language exceptions.png

Программы могут вызывать исключения. Например, когда файл не может быть прочитан. Настройте если необходимо, чтобы отладчик останавливался на исключении.

Игнорировать эти исключения

Добавьте сюда исключения, которые должны игнорироваться. Например: EDivByZero

Прерываться на исключениях Lazarus

Снимите флажок если не хотите, чтобы Lazarus останавливался на любом исключении

Исключения ОС

Debugger options os exceptions.png

Сигналы

(не реализовано)

Defines if signals should be handled by the debugger or by the user program. For instance, an div by zero is first signalled by the OS. Then the FPC RTL translates this to an EDivByZero. When the signal is handled by the debugger, the program is stopped before the RTL translates this message. Currently the debugger always stops on a signal.

См. также