I am new to Android Studio and was trying to get my hands on.
My question is: how can I see the value of any expression which needs to be evaulated?
For instance, in the code below, how can I see the value of Message.getText()
?
if (Message.getText() == null){ Message.setError("Invalid Message");flag=true; }
I have been using Eclipse with PyDev and there I had the option to evaluate any expression while debugging by using the print
statement.
I was just wondering if there is any equivalent functionality in Android studio
Evaluate a complex expression in the editorClick Run | Debugging Actions | Quick Evaluate Expression Ctrl+Alt+F8 . Alternatively, hold Alt and click the selection.
The Frames pane of the Debug pane allows you to inspect the execution stack and the specific frame that caused the current breakpoint to be reached.
You can just use "evaluate expression" button while debugging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With