[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: get debug info
- From: Max Ischenko <max@...>
- Date: Thu, 22 Feb 2001 11:56:28 +0200
I have the following piece of code:
local handler = function(errstr)
Log(LOG_ALERT, errstr)
end
local code, msg = call(dispatch_command,
{commands, cmd}, 'x', handler)
When error occurs I get output like this:
attempt to index field `user' (a nil value)
Can I retrieve in what chunk (file) and in what line did error occurs?
--
Q. How many Mac programmers does it take to change a lightbulb?
A. None. You need a mouse to pull it down.