Запустить отладку из командной строки

Вы можете использовать интерфейс отладчика « Qt Creator » из командной строки. Чтобы подключить его к запущенному процессу, укажите идентификатор процесса в качестве параметра для опции « -debug ». Чтобы проанализировать файл ядра, укажите его имя. Команда « Qt Creator » выполнит все необходимые действия, например поиск двоичного файла, к которому относится данный файл ядра. Чтобы подключиться к отладочному серверу, укажите его расположение и номер порта.

Например:

  • C:\qtcreator\bin>qtcreator -debug 2000
  • C:\qtcreator\bin>qtcreator -debug core=core.2000
  • C:\qtcreator\bin>qtcreator -debug some.exe,core=core
  • C:\qtcreator\bin>qtcreator -debug server=some.dot.com:4251

См. также «Как: отладка», «Отладка», «Отладчики» и «Параметры командной строки».

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.