Bram Moolenaar | f1f60f8 | 2016-01-16 15:40:53 +0100 | [diff] [blame] | 1 | |
| 2 | |
| 3 | |
| 4 | - show backtrace: |
| 5 | |
| 6 | 2 function Foo[2] |
| 7 | 1 Bar[2] |
| 8 | ->0 Bazz |
| 9 | line 2: let var3 = "another var" |
| 10 | |
| 11 | show variables on different levels: |
| 12 | |
| 13 | 6 |
| 14 | 2 function Foo[2] |
| 15 | ->1 Bar[2] |
| 16 | 0 Bazz |
| 17 | line 2: let var3 = "another var" |
| 18 | 3 |
| 19 | ->2 function Foo[2] |
| 20 | 1 Bar[2] |
| 21 | 0 Bazz |
| 22 | line 2: let var3 = "another var" |
| 23 | 1 |
| 24 | |
| 25 | - undefined vars: |
| 26 | |
| 27 | undefined var3 on former level: |
| 28 | Error detected while processing function Foo[2]..Bar[2]..Bazz: |
| 29 | line 3: |
| 30 | E121: Undefined variable: var3 |
| 31 | E15: Invalid expression: var3 |
| 32 | here var3 is defined with "another var": |
| 33 | another var |
| 34 | |
| 35 | undefined var2 on former level |
| 36 | Error detected while processing function Foo[2]..Bar: |
| 37 | line 3: |
| 38 | E121: Undefined variable: var2 |
| 39 | E15: Invalid expression: var2 |
| 40 | here var2 is defined with 10: |
| 41 | 10 |
| 42 | |
| 43 | - backtrace movements: |
| 44 | |
| 45 | 1 function Foo[2] |
| 46 | ->0 Bar |
| 47 | line 3: End of function |
| 48 | |
| 49 | next command cannot go down, we are on bottom |
| 50 | |
| 51 | frame is zero |
| 52 | |
| 53 | next command cannot go up, we are on top |
| 54 | |
| 55 | frame at highest level: 1 |
| 56 | ->1 function Foo[2] |
| 57 | 0 Bar |
| 58 | line 3: End of function |
| 59 | fil 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 |
| 66 | line 3: End of function |
| 67 | ->1 function Foo[2] |
| 68 | 0 Bar |
| 69 | line 3: End of function |
| 70 | |
| 71 | - go beyond limits does not crash |
| 72 | |
| 73 | frame at highest level: 1 |
| 74 | ->1 function Foo[2] |
| 75 | 0 Bar |
| 76 | line 3: End of function |
| 77 | frame is zero |
| 78 | 1 function Foo[2] |
| 79 | ->0 Bar |
| 80 | line 3: End of function |
| 81 | |
| 82 | - final result 19: |
| 83 | 19 |
| 84 | |