PyCharm 2021.1 Help

Evaluate Expression

Run | Debugging Actions | Evaluate Expression
Editor Context Menu | Evaluate Expression
Alt+F8
Evaluate expression

Use this dialog to calculate values of expressions or code fragments during the debugging session.

ItemDescription
Expression

Use this field to edit the expression to be evaluated. If an expression is selected in the editor, this field displays selection.

ItemDescription
Statements to Evaluate

Type the group of statements to be evaluated. If a code fragment is selected in the editor, this field displays selection.

ResultHere the results are displayed.
EvaluateClick this button to evaluate the current expression or code fragment.
CloseClick this button to close the dialog.
Code Fragment ModeClick this button to toggle to the Code Fragment Mode.
Expression ModeClick this button to toggle to the Expression Mode.
Last modified: 08 March 2021