Keil Logo

[ブレークポイント](Breakpoints)ダイアログ

µVision4 は、複雑なブレークポイントもサポートしています。変数に特定の値が含まれている場合に、プログラムの実行を停止したいことがあります。以下の例は、current.time.sec に値 3 が書き込まれたときの停止方法を示します。

[ブレークポイント](Breakpoints)ダイアログ

[デバッグ](Debug)メニューから[ブレークポイント](Breakpoints)ダイアログを開きます。式に「current.time.sec==3」と入力します。[書き込み](Write)チェックボックスを選択します(このオプションは、式が書き込まれた場合にのみブレーク条件がテストされるように指定できます)。[定義](Define)ボタンをクリックして、ブレークポイントを設定します。

ブレークポイント条件をテストするには、以下の手順を実行します。

シンボル 説明
[リセット](Reset)ボタン CPU をリセットします。
[実行](Run)ボタン プログラムの実行が停止されたら、MEASURE プログラムの実行を開始します。

数秒後に、µVision4 は実行を停止します。デバッグウィンドウのプログラムカウンタ行には、ブレークポイントが発生した行がマークされます。

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.