Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Expression Evaluation during debugging

Tags:

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

like image 654
Muzammil Avatar asked Jun 06 '17 01:06

Muzammil


People also ask

How do I evaluate an expression in Intellij debugger?

Evaluate a complex expression in the editorClick Run | Debugging Actions | Quick Evaluate Expression Ctrl+Alt+F8 . Alternatively, hold Alt and click the selection.

Which of the following panes can be viewed in the debug area?

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.


1 Answers

You can just use "evaluate expression" button while debugging.

Evaluate Expression Button

Evaluating selected part of code

like image 53
lukjar Avatar answered Oct 11 '22 08:10

lukjar