Trace an action across script languages
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.
| Where execution is | Where to look |
|---|---|
| Visual graph | Use Execution to step at a node or action boundary. Open source on the matching Events row to locate the authored record. |
| Action list | Use 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 Script | Use PCA Step and PCA Continue for PCA Script’s own debugger. The panel also displays its script-debug snapshot. |
| Lua / BASIC / native GDScript | Follow 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.
