singe/assets/Debugger.singe

36 lines
1.3 KiB
Text

--[[
*
* Singe 3
* Copyright (C) 2006-2026 Scott Duensing <scott@kangaroopunch.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*
*
--]]
-- Singe stopped here because an error is about to end your game. This only happens under --debug,
-- with a debugger such as ZeroBrane Studio attached.
--
-- What went wrong is in "message": hover over it, or look in the Stack window. Where it went wrong
-- is in the Stack window too, a frame or two below this one -- pick your own function there to see
-- its local variables as they were. Continue, and the game ends just as it would have.
local message = ...
require("mobdebug").pause()
return message