データブレークポイントを設定する

データブレークポイントは、指定されたアドレスでデータの読み取りまたは書き込みが行われた際に、アプリケーションを停止させます。

アドレスにデータブレークポイントを設定するには:

  1. Breakpoint Preset 」または「Breakpoints 」ビューで、コンテキストメニューから「Add Breakpoint 」を選択します。

    「ブレークポイントの追加」ダイアログ

  2. Breakpoint type 」では、「Break on data access at fixed address 」を選択します。
  3. Address 」で、メモリブロックのアドレスを指定します。
  4. OK 」を選択します。

そのアドレスが「Locals 」または「Expressions 」ビューに表示されている場合は、コンテキストメニューから「Add Data Breakpoint at Object's Address 」を選択して、データブレークポイントを設定できます。

デバッグ対象のアプリケーションが終了すると、データブレークポイントは無効になります。これは、次回アプリケーションを起動した際に、使用されているアドレスが同じままである可能性が低いためです。データブレークポイントを再度有効にしたい場合は、手動で再有効化してください。

「手順: デバッグ」、「デバッグ」、「デバッガー」、「ブレークポイントの設定も参照してください

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.