Original address: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-3/
23, start and stop using breakpoints
Apple: Cmd+f8 Windows:ctrl+f8
The next few functions are related to debugging. Let's start with one of the most basic features: Add a breakpoint. Believe that so far, everyone should know how to debug an application, but also know how to click on the left-hand side of the edit area to the next breakpoint method. Use this shortcut to quickly start and stop breakpoints to get rid of mouse restrictions.
24. Conditional breakpoint
Apple/windows: Right click on breakpoint, enter break condition
In short, the program is interrupted when the condition is met. You can enter any Boolean evaluation expression as a condition. In addition, the conditional expression input box also provides automatic completion of the function Oh.
25. Breakpoint Log
Apple/windows: Right-click the breakpoint, uncheck the Suspend entry, and enter the log text in the journal evaluated expression
This function is designed to output breakpoint information instead of breaking at a breakpoint. This is useful when you are very eager to record some information in the log and do not want to add the code associated with the log.
26. Temporary Breakpoint
Apple: Cmd+alt+shift+f8 Windows:ctrl+alt+shift+f8
Breakpoints added in this way are only hit once, and then automatically removed.
27. Disable Breakpoints
Apple/windows: There is no corresponding shortcut key, select an existing breakpoint, alt-click the left mouse button to achieve.
This feature is used to disable breakpoints. Disabling breakpoints is useful when you create complex conditional breakpoints or log breakpoints, don't want to delete them, and don't want to enable them right away.
28. Additional Debugger
Apple/windows: No corresponding shortcut key, only by selecting the function icon in the toolbar, or Build->attach to Android Process in the menu bar
The debugger can be started in this way even if the app is not started in debug mode. This feature allows you to start debugging without redeploying your application, which is a very useful feature. For example, someone in the test application suddenly encountered a bug, then plug in the computer can directly start debugging.
29. Calculation Expressions
Apple/windows:alt+f8
This function is used to probe the value of a variable and calculate any valid Java expression.
30. Probing variables
Apple/windows: Select expression, ALT + left mouse button
This function calculates the value of an expression without opening evaluate expression dialog.
31. Mark Objects
Apple: Select Object Hold F3 Windows: Select Object Hold F11
You can also: Select the object by right-clicking and selecting "Mark Object"
So, what is this feature for? Simply put, when we are debugging a program, this feature allows you to add a label to a particular object for quick identification in subsequent debugging. Especially when you have a lot of similar objects, want to make sure that an object is not the one you want, use to want to cry.
32. Parsing the call stack
Apple/windows: There is no corresponding shortcut key, in the menu can choose Analyze->analyze Stacktrace. Or, you can do this with the find execution target described earlier.
Android Studio shortcut key daily (3)