When an input or output port with a Breakpoint gets triggered by the Flow Graph system, the game will be paused. Then the Flow Graph Editor opens the node which consist the Breakpoint, and centers that particular node in the Flow Graph viewer:
To enable debug mode, click on the Debug Debug button in the Flow Graph Editor toolbartoolbar:
Adding and Removing Breakpoints
To add a new Breakpoint, right-click on a specific port and choose Add Breakpoint. You can also add a Breakpoint using Ctrl + Middle Mouse Button on a specific port.
To remove an existing Breakpoint, right-click on the specific node and select Remove Breakpoint. You can also add a Breakpoint by using Ctrl + Middle Mouse Button.
When a Breakpoint is added, a red dot will be displayed next to the input or output Port.
Enabling and Disabling Breakpoints
You can disable or enable specific Breakpoints by right-clicking the Flownode ports (first image below) or the Breakpoint overview window (second image below).
Enabling or disabling Breakpoint using Breakpoint overview window
Converting a Breakpoint into a Tracepoint using context menu
Converting a Breakpoint into a Tracepoint using Breakpoint overview window
Console output example:
The Flowgraph Editor provides a Breakpoints overview panel (bottom right corner) to provide a better overview of all the Breakpoints added in the Flow Graph.
When you click on a Breakpoint in the Breakpoint Overview window, it will open the corresponding or port in the Flow Graph.
You can also remove a specific Breakpoint or Breakpoints in an entire node or Flow Graph by right-clicking in the Breakpoint overview panel.
Resume the Game
The Flow Graph Debugger allows you to see the calculated random number without requiring to add a debug message.
When the R key is pressed in the game, the first Breakpoint will be hit and you can see the calculated random number in the Breakpoints Overview window in the bottom right:
When you press F5 or the Play button from the toolbar the second Breakpoint will be hit:
When you press F5 or the Play button again, the game will be resumed.