1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

STM32CubeIDE の live Expression、static な local 変数を見られるよ

Posted at

STM32CubeIDE の live Expression は便利です。リアルタイムに変数の中身が見られます。

ですが、global 変数に限られます。
local変数をモニタしたいがために一時的に global にしたりしてませんでしたか?

その必要、ないです!

void func3()
{
    static int j;
    いろいろ
}

static である必要がありますが、

image.png

func1::hensu_1   

のようにすれば見られます! 便利!
一時的にglobalするのは面倒です。まだ、一時的にstaticなら楽かと

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?