# end -- stop loading a file

## Synopsis

• Usage:
end
• Consequences:
• This symbol, encountered at top level, causes loading of the current input file to be stopped.
• Alternatively, in the debugger it causes the current code to be abandoned, and the debugger to be re-entered one level further up. If there are no more suspended levels of execution, then control is returned to the top level.

## Description

 i1 : load "Macaulay2Doc/demo3.m2" hi i2 : get loadedFiles#(#loadedFiles-1) o2 = print hi end print ho

Here is an example of its use in the debugger.

 i3 : load "Macaulay2Doc/demo1.m2" i4 : g 2 /usr/share/Macaulay2/Macaulay2Doc/demo1.m2:8:12:(3):[2]: error: division by zero /usr/share/Macaulay2/Macaulay2Doc/demo1.m2:8:12:(3):[2]: --entering debugger (type help to see debugger commands) /usr/share/Macaulay2/Macaulay2Doc/demo1.m2:8:11-8:13: --source code: b := 1/x; ii5 : end /usr/share/Macaulay2/Macaulay2Doc/demo1.m2:13:11:(3):[1]: --entering debugger (type help to see debugger commands) /usr/share/Macaulay2/Macaulay2Doc/demo1.m2:13:11-13:15: --source code: d := f(y-2); ii6 : end i7 : g 3 7 o7 = - 2 o7 : QQ