debugging chdk code - how do you do it? - page 4 - General Discussion and Assistance - CHDK Forum

debugging chdk code - how do you do it?

  • 32 Replies
  • 8549 Views
Re: debugging chdk code - how do you do it?
« Reply #30 on: 30 / September / 2009, 07:06:04 »
Advertisements
i've taken a look at the code a couple of times and i'm having trouble finding where the problem is likely occurring.

LuaD_throw isn't getting called.

I'm only recording the exit on lua_resume != 0 although i'm trying to find the preceding step.

*

Online reyalp

  • ******
  • 12731
Re: debugging chdk code - how do you do it?
« Reply #31 on: 11 / October / 2009, 21:03:28 »
I think I have it wrapped up. comments welcome. oh, am i supposed to deliver this somewhere else?

I'll see if I can learn something about debugging lua this week.
I've checked this in with some minor modifications changeset 815.

Changes are:
- the id in conf is 238, not 237, because another conf item (jpeg quality override, which is ignored on all cameras except sx200) was added in between. This means your personal config will not have the correct value set if you use the trunk build.
- changed the if so that there wasn't undefined behavior if the option wasn't 0 or 1
- renamed lua_reset to lua_script_reset to match lua_script_start

I left the option in the debug menu. Probably doesn't really belong there.
Don't forget what the H stands for.

Re: debugging chdk code - how do you do it?
« Reply #32 on: 11 / October / 2009, 21:21:11 »
I appreciate it!

 

Related Topics