[Commits] [wesnoth/wesnoth] 84f567: add wesnoth.show_lua_console, as a debugging aide

GitHub noreply at github.com
Sat Nov 29 00:00:10 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 84f5677155d3b238bcab4bfa3278487a5d759cec
      https://github.com/wesnoth/wesnoth/commit/84f5677155d3b238bcab4bfa3278487a5d759cec
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-28 (Fri, 28 Nov 2014)

  Changed paths:
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_gui2.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp

  Log Message:
  -----------
  add wesnoth.show_lua_console, as a debugging aide

This allows some sort of "drop into debug" mode for lua if your
script detects an error.

We could consider to actually add an "option to attach debugger"
as an error handling mechanism, but it might be complicated
because of wesnoth exceptions which must go through lua and be
treated as lua errors, and we cannot handle two exceptions at once
obviously, so the lua interpreter is probably not safe to run that
way in general. Anyways this commit does not do that.


  Commit: 87d5f3b440c8dc202020693b24f221cd90409e1b
      https://github.com/wesnoth/wesnoth/commit/87d5f3b440c8dc202020693b24f221cd90409e1b
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-28 (Fri, 28 Nov 2014)

  Changed paths:
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_gui2.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp

  Log Message:
  -----------
  Merge branch 'add_lua_interpreter_launch_command'


Compare: https://github.com/wesnoth/wesnoth/compare/949b05f39a0a...87d5f3b440c8


More information about the Commits mailing list