Please help me pass the review. My question is very clear.
How to check the usage of a variable when debugging the source code?
If you are in your own code, you can use alt f7
to view the call, but in the source code (widget
package, v7
package, etc.) If it doesn’t work, how can I check the usage and assignment of a variable at this time?
For example, I am looking at the class Scroller
, and I want to see where the member variable mCurrX
is used. Is there any way to check it?
If this class is my own, then I can ctrl left click
to view it, or use alt f7
to view it, but the source code cannot be clicked, what can I do? Can you point it out?
I now use alt j
to find the same string, which is very inefficient.
Ask God for guidance
Thanks for the invitation. I don’t quite understand what you want specifically, so I’ll just give you a rough idea based on my understanding.
Under normal circumstances, when the source code is opened in the IDE, there will be many red places, which causes the IDE to be unable to compile. I guess this may be the reason why the IDE cannot generate an index for it, and you cannot use ctrl + left click or alt + f7 to check it out. However, This is just my guess.
I work a lot with source code, but I usually use ctrl+f, which is the search command to see the use of a certain variable. However, some people also use Source Insight to load source code. This tool can also jump through shortcut keys like an IDE. You can try it.
ALT + F7 Your description is not very clear. Please try this