Skip to reading
Debugging and Performance Profiling

Pause just before the gate opens

Edition 0.86.4.5

New 0.86.4.5 field guide. Complements the existing Error Handling & Debugging manual. Benchmark and regression figures are worked examples from the guide, not general performance guarantees. Native GDScript line debugging and engine-level profiling use Godot tools.

Download PDFView illustrations

EXECUTION / COOPERATIVE BREAKPOINTS

Execution while the phone invocation is paused. Select the invocation on the left before using the step controls.

In Execution enter node:gate_route:test in the source-key field. Leave 1 Optional condition empty and choose Toggle breakpoint. You can also open the If Compare node’s context menu in Visual Script Designer and toggle its breakpoint there.

2. Set tickets to 2 and paid to 0, then complete a digit. Back in Execution, select the entry marked paused. On State, evaluate local.left and local.right. Both should be 2. The game has reached the comparison, and paid should still be 0.

Choose Step over. The invocation should stop at node:gate_route:pay, before 3 it writes. Choose Step into to reach the action-row boundary. Choose Continue, then evaluate global.paid. It should now be 1.

Source table from Pause just before the gate opens, page 5
CommandWhat it does
Step outRuns to a supported boundary at a shallower call depth, if the call has one.
Run to targetEnter a node or row key, then run the selected invocation until it reaches that boundary or finishes.
Stop invocationCancels the selected invocation. Other active or paused invocations keep their own IDs.

When the same graph fires twice#

Select the paused ID you intend to inspect. If two calls arrive together, stopping one leaves the other available. Toggle the original breakpoint off when finished, then start a separate capture for performance measurements.

Page 5 of 13Permalink
Go to page