Skip to reading
Debugging and Performance Profiling

Trace an action across script languages

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 PDF page
On this page

EXECUTION / SOURCE NAVIGATION

A GUI can call a graph, the graph can call a script, and the script can perform a standard action. Choose the debugger that can see the segment in question.

Source table from Trace an action across script languages, page 11
Where execution isWhere to look
Visual graphUse Execution to step at a node or action boundary. Open source on the matching Events row to locate the authored record.
Action listUse the action row’s Debug menu for a breakpoint. With a valid row key, Run to target can reach that row in the selected invocation.
PCA ScriptUse PCA Step and PCA Continue for PCA Script’s own debugger. The panel also displays its script-debug snapshot.
Lua / BASIC / native GDScriptFollow shared call and action boundaries in the hub. For native GDScript line debugging, attach Godot’s debugger to a debug run.

Worked variation: a real inventory debit#

1. The supplied gate only writes paid. For a game that charges a fare, give the player three stackable ticket items. In an Inventory Transaction, add Remove Inventory for two tickets and Add Inventory for one entry. Give that action row a breakpoint.

Trigger the action in Trace. Before Continue, inspect the ticket quantity. It 2 should still be 3. Continue once. It should become 1 and the entry quantity should become 1. If you see two debits, compare the caller traces before changing the transaction.

An unavailable native reading#

Use Godot’s Profiler, Visual Profiler or Monitors when you need engine-level samples. A null GPU field in a PCA report means that timing was unavailable. Record the renderer and backend when comparing machines.

Page 11 of 13Permalink
Go to page