Debug log

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Debug log

#1 Post by HousePet »

Could things be changes so that having debug mode enabled automatically enables flush log?

Thanks.
My feedback meter decays into coding. Give me feedback and I make mods.

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: Debug log

#2 Post 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.
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

Graziel
Wyrmic
Posts: 234
Joined: Wed Sep 15, 2010 10:32 am

Re: Debug log

#3 Post 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
You are likely to be eaten by a grue

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Debug log

#4 Post 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...)
My feedback meter decays into coding. Give me feedback and I make mods.

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: Debug log

#5 Post 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.
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

Post Reply