実行中のアプリケーションにデバッガーをアタッチする

ローカルまたはリモートマシン上で既に実行中のアプリケーションにデバッガーを接続するには:

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

    「実行中のアプリケーションに追加」ダイアログ

  2. Filter 」で、プロセス ID または名前でプロセスをフィルタリングするための文字列を入力します。
  3. リストからプロセスを選択し、[Attach to Process ] を選択してデバッグを開始します。

実行中のプロセスのリストを更新するには、[Update List] を選択します。

選択したプロセスを終了するには、[Kill Process] を選択します。

このモードでは、Qt Creator でプロジェクトを開いている必要は厳密にはありませんが、プロジェクトを開いておくと、ブレークポイントの設定やコードのステップ実行が容易になります。

デバッガーをアプリケーションにアタッチする前または後にブレークポイントを指定できます。詳細については、「ブレークポイントの設定」を参照してください。

「方法: デバッグデバッグ処理、およびデバッガーも参照してください

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.