Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
quick:debug [2018/05/29 12:39] – pedro | quick:debug [2020/09/03 09:26] – pedro | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
# Debug Mode Quick Start Guide | # Debug Mode Quick Start Guide | ||
Line 45: | Line 46: | ||
### Breakpoints | ### Breakpoints | ||
- | Behavior Bricks also features a simple type of breakpoint that allows to pause the execution of the scene whenever a given condition is reach in a particular node of a behavior tree in a given entity. | + | Behavior Bricks also features a simple type of breakpoint that allows to pause the execution of the scene whenever a given condition is reached |
In order to set a breakpoint you just need to right click in a node and select `Add Breakpoint`, | In order to set a breakpoint you just need to right click in a node and select `Add Breakpoint`, | ||
Line 51: | Line 52: | ||
{{ : | {{ : | ||
- | Then, it is possible to select the state(s) of the node when the breakpoint | + | Then, in the `Node` tab, it is possible to select the event(s) triggered by the node that will make the breakpoint |
{{ : | {{ : | ||
+ | Finally, for the breakpoint to have effect, the scene has to be played, an entity containing the tree with the breakpoint has to be selected in the `Debug` tab, and the behavior tree has to be opened in the Behavior Bricks editor (it is not required it to be in the active tab of the editor). When the breakpoint is reached, the execution of the scene will be paused. | ||
- | ![Adding | + | A node with a breakpoint |
- | You can configure what events the breakpoint should be triggered in the `Node` tab by marking the desired events. | + | {{ : |
- | ![Breakpoint events](images/DebugModeQuickStartGuide/ | + | </markdown> |
- | + | ||
- | In case all events are unmarked the breakpoint will be displayed as disabled with a grey color: | + | |
- | + | ||
- | ![Disabled breakpoint](images/ | + | |
- | + | ||
- | Remeber that a breakpoint can only be triggered when: | + | |
- | + | ||
- | - You are on Play Mode | + | |
- | - Behavior Bricks Editor is open | + | |
- | - A valid entity is selected | + | |
- | - The behavior that contains the node with the breakpoint attached is open, but you don´t need the behavior to be the active tab. | + | |
- | + | ||
- | ![Triggered breakpoint](images/ | + | |