Design Discussion Debugging "Hangs"

Talk nerdy to us here.
Post Reply
User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » November 21st, 2012, 5:10 pm


When did you get that impression ?

My approach is totally brute force. In the case of mods, I remove half, and half again until I narrow down which one is causing the problem.

Then I remove half the code from the mod, and half again, until I narrow down where the hang/crash is occurring.

After that, I add a serious of insanity logs (logs that are dumped to file immediately) to the code to narrow it down to whatever section is causing the grief.

It is like debugging on UNIX using "printf" statements that dump directly to the console window. :)

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » November 21st, 2012, 5:11 pm


(serious -> series)

Well, they are serious logs, but not what I meant to write. :P

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » November 21st, 2012, 5:30 pm


In that case, I changed the "Have Baby" interaction in Woohooer and added the various logging, and waited for it to hang.

Then copied the contents of the function it got stuck in, made a custom copy, and added the logging to it.

Repeated that process, until I reached the section where the issue lay.

Nothing special. :)

Post Reply