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

ローカルまたはリモート・マシンで実行中のアプリケーションにデバッガをアタッチするには、次の手順に従います:

  1. Debug >Start Debugging >Attach to Running Application に移動します。

    実行中のアプリケーションに添付ダイアログ

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

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

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

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

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

How To: デバッグ」、「デバッグ」、「デバッガ」、「デバッガ」も参照してください

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.