Page 1 of 1
Debug log
Posted: Sun Aug 11, 2013 12:58 am
by HousePet
Could things be changes so that having debug mode enabled automatically enables flush log?
Thanks.
Re: Debug log
Posted: Sun Aug 11, 2013 10:29 pm
by Hachem_Muche
I'd much prefer a debug menu command that forced flushing of the buffer to the file, since flush can slow down the game appreciably.
I run in debug mode a lot to check for intermittent or unexpected bugs (including performance issues) and the slowdown would be very annoying/counter-productive. It's very useful to be able to open up the debug console in those cases to investigate variables that are not saved with the save file. That wouldn't work if you had to reload the game each time to work around a debug mode performance penalty.
Re: Debug log
Posted: Sun Aug 11, 2013 10:47 pm
by Graziel
you can try to use
http://te4.org/games/addons/tome/advanced-debuger its not perfect, works only for ToME, its not finished but allows you to get (almost) instant log, also be aware its addon so it will display log after its loaded by game,
quick instructions:
enable addon
load ToME
open localhost:3018 in browser
Re: Debug log
Posted: Mon Aug 12, 2013 12:17 am
by HousePet
Okay, maybe a persistent switch then?
I don't have slow issues with flush log, but loading the launcher and turning it on when I want it takes time.
(vaguely wondering if one exists already...)
Re: Debug log
Posted: Mon Aug 12, 2013 5:00 pm
by Hachem_Muche
The persistent switch idea would work well, I think.
Graziel: The debugger idea looks promising, but needs some documentation (how do you inspect functions?) and a little more functionality.