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 |