next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

value(Pseudocode) -- execute pseudocode

Synopsis

Description

Here is an example of its use in the debugger, to see whether modifying the value of a local variable fixed the problem in the code, by executing just the offending line.

i1 : load "Macaulay2Doc/demo1.m2"
i2 : g 2
../../../../../../Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(1):[2]: error: division by zero
../../../../../../Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(1):[2]: --entering debugger (type help to see debugger commands)
../../../../../../Macaulay2/packages/Macaulay2Doc/demo1.m2:8:11-8:13: --source code:
     b := 1/x;
ii3 : value current
../../../../../../Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(1):[0]: error: division by zero
ii4 : x = 11

oo4 = 11
ii5 : value current

       1
oo5 = --
      11

oo5 : QQ

See also