Software /
code /
prosody
Comparison
util/debug.lua @ 4778:127de6eec433
util.debug: Add +1 to level when getting locals table, to account for current function
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 16:21:19 +0100 |
parent | 4777:74ae0433f8dd |
child | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
4777:74ae0433f8dd | 4778:127de6eec433 |
---|---|
95 if not info then break; end | 95 if not info then break; end |
96 | 96 |
97 levels[(level-start_level)+1] = { | 97 levels[(level-start_level)+1] = { |
98 level = level; | 98 level = level; |
99 info = info; | 99 info = info; |
100 locals = get_locals_table(level); | 100 locals = get_locals_table(level+1); |
101 upvalues = get_upvalues_table(info.func); | 101 upvalues = get_upvalues_table(info.func); |
102 }; | 102 }; |
103 end | 103 end |
104 return levels; | 104 return levels; |
105 end | 105 end |