Off
Examples
open all close allBasic Examples (2)
The following issues a message:
Log[a, b, c]Off[Log::argt]Log[a, b, c]On[Log::argt]Do not suppress duplicated messages:
Off[General::stop]Do[0 ^ 0, 5]On[General::stop]After the third repetition, further identical messages are suppressed:
Do[0 ^ 0, 5]Scope (4)
Off[Power::infy, Power::indet]{1 / 0, 0 ^ 0}On[Power::infy, Power::indet]{1 / 0, 0 ^ 0}Turn off the "Compiler" message group to prevent compiler messages from being issued:
Off["Compiler"]No message is issued for an incorrect input:
f = Compile[{{x, _Real}}, x];
f[I]On["Compiler"]The message is no longer suppressed:
f[I]Getting the values of symbols is normally done silently:
a = 1;aUse On to enable tracing of the symbol:
On[a]a = 1;aOff[a]a = 1;aTurn on tracing for multiple symbols:
On[a, b]Assign values to the symbols. As their values are set but not accessed, no tracing message is generated:
a = 1;b = 2;Retrieve the value of the symbols; now, tracing messages are generated:
{a, b}Turn off tracing for all symbols:
Off[]No messages are issued during access:
{a, b}Properties & Relations (2)
Quiet can be used to leave messages on globally but suppress them in a particular computation:
Quiet[1 / 0, {Power::infy}]The message is still issued by default for computations in the kernel session:
1 / 0Check can be used to determine if a message was issued:
Check[1 / 0, "message issued"]If a message is turned off, Check no longer reports message generation:
Off[Power::infy]Check[1 / 0, "message issued"]On[Power::infy]See Also
Tech Notes
Related Guides
Related Workflows
- Suppress Error Messages ▪
- Understand Error Messages
History
Introduced in 1988 (1.0) | Updated in 2008 (7.0)
Text
Wolfram Research (1988), Off, Wolfram Language function, https://reference.wolfram.com/language/ref/Off.html (updated 2008).
CMS
Wolfram Language. 1988. "Off." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Off.html.
APA
Wolfram Language. (1988). Off. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Off.html
BibTeX
@misc{reference.wolfram_2026_off, author="Wolfram Research", title="{Off}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Off.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_off, organization={Wolfram Research}, title={Off}, year={2008}, url={https://reference.wolfram.com/language/ref/Off.html}, note=[Accessed: 13-June-2026]}