PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Tuning & Debugging
>
Symbolic Execution History
>
Built-in
Mathematica
Symbol
The Evaluation Stack
Tutorials »
|
StackBegin
StackComplete
StackInhibit
Trace
See Also »
|
Low-Level System Spelunking
Symbolic Execution History
Tuning & Debugging
More About »
Stack
Stack
[]
shows the current evaluation stack, giving a list of the tags associated with evaluations that are currently being done.
Stack
[
pattern
]
gives a list of expressions currently being evaluated which match the pattern.
MORE INFORMATION
Stack
[_]
shows all expressions currently being evaluated.
You can call
Stack
from inside a dialog to see how the dialog was reached.
In the list returned by
Stack
[
pattern
]
, each expression is wrapped with
HoldForm
.
The maximum length of
Stack
[]
is limited by
$RecursionLimit
.
Stack
has attribute
HoldFirst
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Print the stack where the
Stack
command is being evaluated:
In[1]:=
Out[1]=
Print the detailed stack contents including function arguments:
In[1]:=
Out[1]=
Scope
(1)
SEE ALSO
StackBegin
StackComplete
StackInhibit
Trace
TUTORIALS
The Evaluation Stack
MORE ABOUT
Low-Level System Spelunking
Symbolic Execution History
Tuning & Debugging
New in 2
© 2008 Wolfram Research, Inc.