Public
Jan 28, 2016
Really digging non-suspending breakpoints in Android Studio. This lets you log to the console without pausing execution; it's great when debugging interactions like scrolling where pausing is really disruptive. You can also update your logged info without having to recompile/deploy.
Right click on a breakpoint (or ⇧+⌘/Ctrl+F8) and untick suspend, i've found the 'Log evaluated expression' helpful.
Think I heard this in this excellent talk but only recently started using it:
https://www.youtube.com/watch?v=Y2GC6P5hPeA&list=PLWz5rJ2EKKc_Tt7q77qwyKRgytF1RzRx8&index=18
Try it out. #AndroidDev #ProductivityMatters
Right click on a breakpoint (or ⇧+⌘/Ctrl+F8) and untick suspend, i've found the 'Log evaluated expression' helpful.
Think I heard this in this excellent talk but only recently started using it:
https://www.youtube.com/watch?v=Y2GC6P5hPeA&list=PLWz5rJ2EKKc_Tt7q77qwyKRgytF1RzRx8&index=18
Try it out. #AndroidDev #ProductivityMatters

View 12 previous comments
+Ronaldo Pace Why is it so slower in this state, now that I think about it? Does it do something with the PC after every line of code, or something?10w
+Liran Barsisa I don't know the small details on why, but it's just how stuff with debugger connected run. Slow! 10w
That's really a cool tip! I've tried it today, very useful! 10w
Nice tip. The functionality to log evaluated expression can be very handy.10w
+Nick Butcher Love non suspending breakpoints. Even cooler: since it actually executes code on the VM, you can do more than just logging. For instance, you could change the value of a variable, do a method call that will log you in, put your app in a specific failing condition, all without redeploying any code.9w
is that pograming?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!4w