next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

errorDepth -- set the error printing depth

Description

errorDepth = i -- sets the error depth to i, which should be a small integer, returning the old value.

During the backtrace after an error message, a position in interpreted code is displayed only if the load depth was at least as large at the time the code was parsed as the error depth is now. Typically, the error depth is set so that messages from code pre-interpreted and reloaded with loaddata will not appear in the backtrace.

To increase the size of the stack trace for debugging, reduce the errorDepth.

See also

For the programmer

The object errorDepth is an integer.