1. A method for debugging a statechart, comprising: displaying the statechart on a display, wherein the statechart comprises a plurality of state icons connected by wires, wherein the state icons correspond to respective states and wherein the wires correspond to transitions to/from the states, wherein the statechart is executable by a computer to perform first functionality; creating a data flow graphical program in response to user input, wherein the data flow graphical program comprises a plurality of interconnected nodes, wherein connections between nodes indicate that data produced by one node is used by another node, wherein the data flow graphical program specifies a debugging operation for the statechart; configuring an input of the data flow graphical program to receive first data produced by the statechart; executing the statechart on a computer, wherein the statechart produces the first data during said executing; providing the first data to the data flow graphical program; executing the data flow graphical program to perform the debugging operation based on the first data; wherein the debugging operation is useable to aid in debugging the statechart.