The following statement (located on line 331 of TargetWindow.lua) spams the debugwindow with text whenever a target is selected:
Code:
Debug.Print("Num: "..#menuItems)