Macaulay2 » Documentation
Packages » Macaulay2Doc :: errorDepth
next | previous | forward | backward | up | index | toc

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 and the debugger is entered only if the load depth was at least as large at the time the code was parsed as the error depth is now. The default value is 3, which shows only positions in the user's code and positions inside loaded packages whose debugging mode is true. Set it to 2 to also debug statements inside loaded packages, except for the package Core. Set it to 1 to also debug statements in the core, and set it to 0 to debug statements in the bootstrap code.

See also

For the programmer

The object errorDepth is an integer.