Hi ,
I have following question to understand.
1. How to enable debugs in luci package ?
2. how to debug lua files at run time. say i have xxxx.lua and added some "print" to print some patameter values.
for example:
local arptable = luci.sys.net.arptable() or {}
for i, dataset in ipairs(arptable) do
print(i) // wanted to print value of i and dataset
print(dataset)
ip:value(
dataset["IP address"],
"%s (%s)" %{ dataset["IP address"], dataset["HW address"] }
)
end
so when we try to load the page we get error "Bad Gateway The process did not produce any response" but as soon as if we delete the print statement page loads without any issue.
3. do we have any document to understand complete flow of the luci framework in openWRT .( like how bottons are works, how uci involed from lua to write or read config files etc..,)