-- -*- M2-comint -*- hash: 7560430396722453360

i1 : x:=3; y:="hi there"; z:=2^30; f = x->x;

i5 : listLocalSymbols f

o5 = symbol  class   value       location of symbol
     ------  -----   -----       ------------------
     x       ZZ      3           stdio:1:0-1:1     
     y       String  "hi there"  stdio:1:6-1:7     
     z       ZZ      1073741824  stdio:1:21-1:22   

i6 : listLocalSymbols symbol x

o6 = symbol  class   value       location of symbol
     ------  -----   -----       ------------------
     x       ZZ      3           stdio:1:0-1:1     
     y       String  "hi there"  stdio:1:6-1:7     
     z       ZZ      1073741824  stdio:1:21-1:22   

i7 : load "Macaulay2Doc/demos/demo1.m2"

i8 : g 2
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3):[2]: error: division by zero
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3): entering debugger (enter 'help' to see commands)
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:10-8:13: --source code:
     b := 1/x;

ii9 : listLocalSymbols

oo9 = symbol  class            value                                                    location of symbol
      ------  -----            -----                                                    ------------------                                                                        
      a       String           "hi there"                                               /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:7:5-7:6
      b       Nothing          null                                                     /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:5-8:6
      x       ZZ               0                                                        /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:6:5-6:6
      f       FunctionClosure  FunctionClosure[/usr/share/Macaulay2/Macaulay2Doc/demo.  /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:6:0-6:1

ii10 : h := x -> y -> y+1;

ii11 : listLocalSymbols(ZZ,h 11)

oo11 = symbol  class  value  location of symbol
       ------  -----  -----  ------------------                                                                        
       x       ZZ     0      /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:6:5-6:6
       x       ZZ     11     stdio:7:5-7:6                                                                             

ii12 : load "Macaulay2Doc/demos/demo1.m2"

ii13 : g 2
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3):[2]: error: division by zero
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3): entering debugger (enter 'help' to see commands)
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:10-8:13: --source code:
     b := 1/x;

iii14 : listLocalSymbols ZZ

ooo14 = symbol  class  value  location of symbol
        ------  -----  -----  ------------------                                                                        
        x       ZZ     0      /usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:6:5-6:6

iii15 : 
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:11:(3): entering debugger (enter 'help' to see commands)
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:10-13:16: --source code:
     d := f(y-2);

iii16 : 

ii17 : 
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:11:(3): entering debugger (enter 'help' to see commands)
/usr/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:10-13:16: --source code:
     d := f(y-2);

ii18 : 

i19 : 
