How do people debug chdk?
>>Not sure about your specific problem with kbd.cI might be looking in the wrong place. kdb.c is definitely where the script execution is triggered but I don't think Lua passes on any error to the OS. This means that I'll need to intercept the error from within Lua.
Lres = lua_resume( Lt, top ); if (Lres != LUA_YIELD && Lres != 0) { script_console_add_line( lua_tostring( Lt, -1 ) ); wait_and_end(); return; }
or an error code in case of errors (see lua_pcall). In case of errors, the stack is not unwound, so you can use the debug API over it. The error message is on the top of the stack.
got lua_resume working - not sure if its a good idea to continue executing a script which has produced an error. any thoughts on that?
also trying to figure out a good way to log lua errors.
Started by intrinsic « 1 2 » General Discussion and Assistance
Started by GrAnd « 1 2 » General Chat
Started by flarn2006 Feature Requests
Started by reyalp General Discussion and Assistance
Started by waterwingz General Chat