$Inspector

$Inspector

is a global variable which gives a function to apply when the inspector is invoked from an interrupt menu.

Details

  • The argument supplied is the number of nested invocations of the inspector that are in use.
  • The default value of $Inspector is a function that executes Dialog[].

Examples

Basic Examples  (2)

The default value:

In[1]:=
Click for copyable input
Out[1]=

Print a message before starting or exiting a subsession:

In[1]:=
Click for copyable input

Invoke an interrupt menu:

In[2]:=
Click for copyable input

In subsession:

In[3]:=
Click for copyable input
(Dialog) Out[3]=
In[4]:=
Click for copyable input

Restore to the default value:

In[5]:=
Click for copyable input

See Also

Interrupt  Dialog

Introduced in 1991
(2.0)