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 usealt 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 classScroller
, and I want to see where the member variablemCurrX
is used. Is there any way to check it?
If this class is my own, then I canctrl left click
to view it, or usealt f7
to view it, but the source code cannot be clicked, what can I do? Can you point it out?
I now usealt 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 usectrl + left clickoralt + f7to check it out. However,This is just my guess.
I work a lot with source code, but I usually usectrl+f, which is the search command to see the use of a certain variable. However, some people also useSource Insightto 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