Break on variable value change in Android Studio 1.1.0?

后端 未结 4 1305
傲寒
傲寒 2021-02-03 22:58

I know I could set a breakpoint at every line where my code changes the variable, but is there an option such as right-clicking a variable (to \"Add to Watches\") that would sto

4条回答
  •  悲哀的现实
    2021-02-03 23:24

    What you seek for is commonly known as "WatchPoint". You will find detailed answer and examples on the doc. page of JetBrains - IntelliJ - Idea which is the basis for Android Studio.

    https://www.jetbrains.com/help/idea/2016.3/creating-field-watchpoints.html

    For me this works perfectly !

提交回复
热议问题