Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Messages > $MessageList >
Mathematica > Core Language > Tuning & Debugging > Messages > $MessageList >

$MessageList

$MessageList
is a global variable that gives a list of the names of messages generated during the evaluation of the current input line.
  • With the standard Mathematica main loop, $MessageList is reset to when the processing of a particular input line is complete.
Get a list of messages produced in a computation:
Use messages for processing:
Printing can be suppressed by using $MessageList inside of Quiet:
Get a list of messages produced in a computation:
In[1]:=
Click for copyable input
Out[1]=
 
Use messages for processing:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Printing can be suppressed by using $MessageList inside of Quiet:
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF