We would like to use the Lua penlight library (http://stevedonovan.github.io/Penlight/api/index.html) which works well in the simulator and on device, BUT breaks the LuaGlider debugger.
If we set a breakpoint and run the debugger we get an error like:
Runtime error: …trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:226: Encoding of function: 0x10f80dc10 unsupported
stack traceback:
[C]: ?
[C]: in function ‘error’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:226: in function ‘WriteError’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:235: in function ‘WriteFunction’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:154: in function ‘Write’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:219: in function ‘WriteTable’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:152: in function ‘Write’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:219: in function ‘WriteTable’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:152: in function ‘Write’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:219: in function ‘WriteTable’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:152: in function ‘Write’
…
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:219: in function ‘WriteTable’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:152: in function ‘Write’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:219: in function ‘WriteTable’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:152: in function ‘Write’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:524: in function ‘encode’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:545: in function ‘sendObject’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:955: in function ‘writeVariableDump’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:1008: in function ‘p’
…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:1340: in function <…trunk(Builds)/trunk(default)/trunk/CiderDebugger.lua:1244>
…ctBuilds/trunk(Builds)/trunk(default)/trunk/main.lua:100: in main chunk
The above function code 0x10f80dc10 is not in _G - so we have no idea which function is unsupported
The pl library is using “forbidden” lua functions like loadstring etc. but we are quite sure, we are not using them (the code works fine in Simulator) and we commented them out. We do not require the complete library, only modules we need.
Does anybody use the penlight library with the debugger working or as any hints what to do ?
kind regards,
Sven