I was wondering if there is any way to debug one's Lua/CELX code efficiently. Currently, the only feedback I get from Celestia is that either the script works as expected or it doesn't. Is there a stdout or stderr somewhere that can be viewed
Cheers
Lua/CELX scripting
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Re: Lua/CELX scripting
I agree. It's a pain.
Some errors show up in Celestia's "console log".
It can be seen by typing a "tilde" (~) which is the same as (shift-`) on most keyboards.
It can be navigated by typing the up- and down-arrow keys.
Some errors show up in Celestia's "console log".
It can be seen by typing a "tilde" (~) which is the same as (shift-`) on most keyboards.
It can be navigated by typing the up- and down-arrow keys.
Selden
Re: Lua/CELX scripting
Thanks! That's better than nothing.
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
Re: Lua/CELX scripting
Also, you can print out your own debug messages in the console log using the celestia:log(string) method.
@+
Vincent
Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3
Vincent
Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3
Re: Lua/CELX scripting
Thanks Vincent, that is quite useful!