You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / utils / frame / debugx

function

IPython.utils.frame:debugx

source: /IPython/utils/frame.py :72

Signature

def   debugx ( expr : str pre_msg : str = '' )  →  None

Summary

Print the value of an expression from the caller's frame.

Extended Summary

Takes an expression, evaluates it in the caller's frame and prints both the given expression and the resulting value (as well as a debug mark indicating the name of the calling function. The input must be of a form suitable for eval().

An optional message can be passed, which will be prepended to the printed expr->value pair.

Aliases

  • IPython.utils.frame.debugx