I think you confused something maybe?
The page says: "To enable Lua unit scripts, create a file LuaRules/Gadgets/unit_script.lua, and paste the following into it: ..."
That is just something the game has to do once, so that lua unit scripts work. Kind of including/loading/setting up the "framework", which zeroK already has done.
So it is not anything that goes into your new unit's script or not something that you will have to think about when scripting your new unit.
So how do i debug my animation?
/cheat
/luarules reload
to reload it after editing, then try until it works.
Also, im working only with text editor, are there any LUA animation help tools?
Some tools, but more like "helpers" not full editors or anything like that:
http://springrts.com/phpbb/viewtopic.php?t=27268
I also like this:
http://springrts.com/phpbb/viewtopic.php?f=23&t=25847
because I always forgett the name of pieces and how they attach to each other.