lua-bindings: autoenable debugging when 'lua debug' is enabled.