起動中のプロセスにデバッガをアタッチする

デバッガにアプリケーションプロセスを監視させ、そのプロセスが起動した際にアタッチさせるには:

  1. Debug 」>「Start Debugging 」>「Attach to Unstarted Application 」の順に選択します。

    「起動していないアプリケーションに添付」ダイアログ

  2. Kit 」で、プロジェクトのビルドに使用するビルドおよび実行キットを選択します。
  3. Executable 」で、アプリケーションの実行ファイルへのパスを指定します。
  4. アプリケーションが閉じられたときにこのダイアログに戻るには、[Reopen dialog when application finishes ] を選択します。
  5. Continue on attach を選択すると、デバッガーがアプリケーションにアタッチした後も、アプリケーションの実行を継続するよう指示されます。
  6. [Start Watching ] を選択すると、アプリケーション プロセスが開始されるまで待機します。

プロジェクトのキットの有効化」、「方法:デバッグ」、「デバッグ」、「デバッガも参照してください

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.