I understand Mathematica programs to be a series of steps enclosed in simple parentheses. Each 'step' ends in a semicolon except for the last. The program output is then the output of the last step and intermediate step output is suppressed. I wish to "see the program run", by seeing output for each step. Here is an example.
(
s=5;
f[x_]:=x^2;
g[x_]:=f[x]-5;
g[s] f[s]-s
)
Which evaluates to 495. I'd like to see f[x]=25 and g[x]=20 along the way. Thanks.


Echoin the documentation. – Sjoerd Smit Nov 24 '20 at 20:52SetDelayedalways returnNull, which does print at top-level. Perhaps a better example is needed to make this question meaningful. – m_goldberg Nov 25 '20 at 04:48