Deeper debugging

When watching the logs on a larger project, I often see errors like this :

01 04/03/12 21:50:36.617 LuaInterface::LoadCode: [string “…”]:568: ‘then’ expected near ‘)’ <0x2aba6000>
01 04/03/12 21:50:36.998 Device_Interface::CreateLuaInterface 11 failed to start engine <0x2aba6000>

None of my source files go up to 568, so I am assuming that a lot of the source gets concatenated and then processed. Is there any way to see what that source looks like so that I can quickly find an error like this? I seem to remember reading about a way, but I can’t seem to locate the information again.

Thanks!

One of the things I do is run the lua file through SciTE to check for syntax errors before uploading.
[url=http://www.scintilla.org/SciTE.html]
http://www.scintilla.org/SciTE.html[/url]

The caveat is that it is a pure lua file.

Action handlers get expanded to function declarations… On higher line numbers.

The original inclusion style of UI5 inlines the Lua library (not treating it as a native Lua module).

These two together are where I would look.