blob: 6315edcc2192776a638e42b56c151302fb1b0c06 [file] [log] [blame]
Bram Moolenaarf1f60f82016-01-16 15:40:53 +01001
2
3
4- show backtrace:
5
6 2 function Foo[2]
7 1 Bar[2]
8->0 Bazz
9line 2: let var3 = "another var"
10
11show variables on different levels:
12
136
14 2 function Foo[2]
15->1 Bar[2]
16 0 Bazz
17line 2: let var3 = "another var"
183
19->2 function Foo[2]
20 1 Bar[2]
21 0 Bazz
22line 2: let var3 = "another var"
231
24
25- undefined vars:
26
27undefined var3 on former level:
28Error detected while processing function Foo[2]..Bar[2]..Bazz:
29line 3:
30E121: Undefined variable: var3
31E15: Invalid expression: var3
32here var3 is defined with "another var":
33another var
34
35undefined var2 on former level
36Error detected while processing function Foo[2]..Bar:
37line 3:
38E121: Undefined variable: var2
39E15: Invalid expression: var2
40here var2 is defined with 10:
4110
42
43- backtrace movements:
44
45 1 function Foo[2]
46->0 Bar
47line 3: End of function
48
49next command cannot go down, we are on bottom
50
51frame is zero
52
53next command cannot go up, we are on top
54
55frame at highest level: 1
56->1 function Foo[2]
57 0 Bar
58line 3: End of function
59fil is not frame or finish, it is file
60"[No Name]" --No lines in buffer--
61
62- relative backtrace movement
63
64 1 function Foo[2]
65->0 Bar
66line 3: End of function
67->1 function Foo[2]
68 0 Bar
69line 3: End of function
70
71- go beyond limits does not crash
72
73frame at highest level: 1
74->1 function Foo[2]
75 0 Bar
76line 3: End of function
77frame is zero
78 1 function Foo[2]
79->0 Bar
80line 3: End of function
81
82- final result 19:
8319
84