Create account / Log in

Debug Log

Topics related to the main Vassal engine.

Moderators: uckelman, Tim M

Debug Log

Postby JustThisGuy » May 22nd, 2020, 3:08 pm

As a new module developer, one of the things that would be really helpful is getting some sort of debug log that showed all the property value transitions, and which traits were firing. As it is I tend to just have a module that doesn't work, and very little to go on.

Is there any way to get such a log?
JustThisGuy
 
Posts: 4
Joined: April 19th, 2020, 1:50 pm

Re: Debug Log

Postby JoelCFC25 » May 22nd, 2020, 3:19 pm

See this very similar thread started just the other day for some ideas: viewtopic.php?f=6&t=11836
JoelCFC25
 
Posts: 698
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN

Re: Debug Log

Postby Cattlesquat » May 22nd, 2020, 5:25 pm

Just don't be intimidated by the first few messages (about editing XML files and stuff) -- skip down to e.g. shilinksi's message that has some totally workable ideas w/in the structure.

A quick summary of ideas is:
* Text Label traits that show the states of things
* Report traits to tell you what's happening step-by-step during execution
* Game Piece Inventory windows where pieces can report stuff "en masse"
* Report trait activated by a keystroke on a piece, so out of the way until you do a keystroke to tell a piece to "spill its guts"
User avatar
Cattlesquat
 
Posts: 489
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Debug Log

Postby JustThisGuy » May 23rd, 2020, 10:47 am

Thanks guys - the inventory window is particularly useful. Now at least I know what's happening, even if I don't know why it's happening!
JustThisGuy
 
Posts: 4
Joined: April 19th, 2020, 1:50 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests