Android Studio Tip of the Day--Breakpoints
来源:互联网 发布:淘宝怎么找优惠券 编辑:程序博客网 时间:2024/06/11 21:18
<1>Android Studio Tip of the Day: Toggle Breakpoints
The next few tips will be about debugging. So let's start with the most basic one: adding a good old line breakpoint!
I am pretty sure that by now you have debugged an app and know how to toggle it by left-clicking in the left gutter.
Here is the correct shortcut to toggle it without your mouse.
Shortcut:
- Mac: Cmd+F8
- Windows/Linux: Ctrl+F8
View all breakpoints
Shortcut:
-Mac:Shift + Cmd +F8
<2>Android Studio Tip of the Day: Disable Breakpoints
This will disable the breakpoint. Particularly useful when you have some complicated conditional or logging breakpoint that you don't need right now but don't want to recreate next time.
Shortcut:
- Mouse: Alt+LeftClick on an existing breakpoint in the left gutter
- There is no keyboard shortcut but you can create one if you use it often enough.
<3>Android Studio Tip of the Day: Temporary Breakpoints
This is a way to add a breakpoint that will be removed automatically the first time you hit it.
Shortcut:
- Mouse: Alt+LeftClick in the left gutter
- Mac: Cmd+Alt+Shift+F8
- Windows/Linux: Ctrl+Alt+Shift+F8
<4>Android Studio Tip of the Day: Conditional Breakpoints
In a nutshell, only do break when a certain condition is met. You can enter any java expression that returns a boolean based on the current scope.
And do enjoy the fact that the condition textbox supports code completion!
Shortcut:
- Right click on a breakpoint and enter a condition.
<5>Android Studio Tip of the Day: Logging Breakpoints
This is a breakpoint that logs stuff instead of breaking.
This can be useful when you want to log some stuff right now but cannot or don't want to redeploy with logging code added.
Shortcut:
- Right click on a breakpoint, uncheckSuspend and type your message in "Log evaluated Expression"
From:https://plus.google.com/collection/wtO0PB
- Android Studio Tip of the Day--Breakpoints
- Tip of the Day(Android Studio)
- Android Studio / Intellij Tip of the Day
- Android Studio中Tip of the Day和keymap介绍的快捷键
- Android Studio Tip of the Day(AS IDE每日小技巧,持续更新)
- Android Studio中keymap和Tip of the Day介绍的快捷键
- 关于Tip of the Day
- Android Studio Tips Of the Day
- Tip of the day的bug
- AndroidStudio2.1 Tip of the Day
- Tip of the Day(for AS)
- Android Studio Tips Of the Day – Roundup
- Android Studio Tips Of the Day – Roundup #1
- Android Studio Tips Of the Day - Roundup #1
- Android Studio Tips Of the Day - Roundup #2
- Android Studio Tips Of the Day - Roundup #3
- nWire Tip Of The Day (2011-10-27)
- 先把同事的原创贴上 - Tip of the Day --for Using Emacs
- 去掉标签 address, cite, dfn, em, i, var 的 默认样式
- A33 Flash容量显示
- HDU 6048 Puzzle(思维以及爆int引发的思考)
- CVPR 2017精彩论文解读:Xception深度可分离卷积模型
- CSDN如何转载别人的博客
- Android Studio Tip of the Day--Breakpoints
- CCF 2017-03-4 地铁修建
- Ubuntu16.04安装CUDA8.0+CUDNN7
- html 中 a 链接的 download 属性的神奇使用
- 使用Android 编写2048小游戏(二)
- MySQL入门很简单-MySQL存储引擎
- 初识nodejs26
- kafka-manager 安装
- JAVA解析xml(JDOM,DOM4J)