Compile it in debug mode and step through it. Set break points at strategic locations to investigate the functionality you're interested in.