Re: [code] [textadept] Debugging init.lua issues

From: Russell Dickenson <russelldickenson.att.gmail.com>
Date: Thu, 3 Oct 2013 07:51:38 +1000

Chris,

Awesome! As a Textadept and Lua noob, I regularly run into problems when
tweaking my personal init.lua file. Now I can more easily debug them so
thankyou, thankyou, thankyou!

On 2 October 2013 22:10, Chris Emerson <c-ta.att.mail.nosreme.org> wrote:

> Hi,
>
> In case it helps anyone, I debugged issues from updating to beta 4 by
> wrapping the following around my init.lua:
>
> -- start of init.lua
> local res, msg = xpcall(function()
> --[[ rest of init.lua here ]]--
> end, function(msg)
> return debug.traceback(msg)
> end)
> if not res then
> f = io.open("ta_error.txt", "w")
> f:write(msg)
> f:close()
> end
> -- end of init.lua
>
> And then if there's a problem a Lua traceback gets written to ta_error.txt.
>
> Regards,
>
> Chris
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 02 Oct 2013 - 17:51:38 EDT

This archive was generated by hypermail 2.2.0 : Thu 03 Oct 2013 - 06:49:39 EDT