Avvia il debug dalla riga di comando

È possibile utilizzare l'interfaccia del debugger Qt Creator dalla riga di comando. Per collegarlo a un processo in esecuzione, specificare l'ID del processo come parametro dell'opzione -debug. Per esaminare un file core, specificare il nome del file. Il comando ` Qt Creator ` esegue tutte le operazioni necessarie, come la ricerca del file binario associato a un file core. Per connettersi a un server di debug, specificare la posizione del server e il numero di porta.

Ad esempio:

  • 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

Vedere anche Procedura: Debug, Debugging, Debugger e Opzioni della riga di comando.

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.