The handy script below (x4-debug.bat) can be used as a shortcut to start x4 in debug mode. You get:
- All debug messages turned on
- All debug logs sent to a timestamped file, so you dont lose anything
Copy paste the code in the file below, then update the value for X4_EXE_PATH
- change it to wherever X4.exe is located.
Your debug logs will be available in the Documents\Egosoft\X4 Foundations\
folder.
Consider using a log analysis tool like glogg which can help you sort, filter, and find data in the logs.
I've made a fork of this functionality into Powershell, with some minor enhancements, it is available here:
https://gist.github.com/IonutDanNica/da07ed87f479626e7847c6f8a4e5be7a