Exploring bro, need practical exposure


I am a student at SJSU and working on a project related to network security. I am new to Bro IDS. I would like to know which algorithms does bro used for network detection? If not how can I debug and compile a bro source code? I would like to know how can I debug code in bro too. I have downloaded and installed successfully the BRO IDS