Debugging (Civ5)
From Civilization Modding Wiki
This article is under construction, come back in a few days.
Checklist
XML Debugging
Reading the logs
Using the snapshots
Lua Debugging
Using the Firetuner console
Print, assert and error
Coroutines stack traces
Handling errors for the end-user
Troubleshooting
Game inspectors
Quick bug reproduction
Configuring your installation
Look for the following files under My Documents/My Games/Sid Meiers' Civilization V and open them in a text editor like the notepad (not in a word processor).
- config.ini
- Set
LoggingEnabledto 1. Civ5 will write log files under theLogsfolder. - Set
EnableLuaDebugLibraryto 1. Civ5 will display stack traces on Lua errors and you will be able to use the debug object. - Set
DebugPanelto 1. By pressing the ² key (may be ù or something else depending on your computer's language) during a game, Civ5 will display a debug panel.
- Set
- usersettings.ini
- Set
DebugModeto 1. Needed to enable other features previously mentioned.
- Set