You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/manuals/debugging-game-logic.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,11 @@ Setting and clearing breakpoints
87
87
88
88
To set or clear a breakpoint, click in the column just right of the line numbers in the code editor. You can also select <kbd>Edit ▸ Toggle Breakpoint</kbd> from the menu.
89
89
90
+
Disabling and enabling breakpoints
91
+
: Breakpoints can be temporarily disabled without removing them. When disabled, they are ignored during execution but can be re-enabled at any time. Right-click it in the code editor gutter, then toggle the Enabled checkbox. Disabled breakpoints appear hollowed out to indicate they are inactive.
: You can configure your breakpoint to contain a condition that needs to evaluate to true for the breakpoint to trigger. The condition can access local variables available at the line during code execution.
92
97
@@ -104,6 +109,26 @@ Evaluating Lua expressions
104
109
Detaching the debugger
105
110
: Select <kbd>Debug ▸ Detach Debugger</kbd> to detach the debugger from the game. It will continue running immediately.
When working with multiple breakpoints across different scripts, the Breakpoints tab provides a centralized view for managing all your breakpoints in one place.
117
+
118
+
##### Individual Breakpoint Controls
119
+
120
+
For working with individual breakpoints:
121
+
- Click the red trash icon to remove a breakpoint
122
+
- Double-click the row (outside the condition area) to navigate to that line in the Code View
123
+
- Double-click the condition cell or click the pen icon to edit conditional breakpoints
124
+
- Click the X clear button when hovering over a condition cell to clear the condition
125
+
126
+
##### Batch Operations
127
+
128
+
Select multiple breakpoints using Ctrl/Cmd+click or Shift+click, then right-click to perform bulk actions. You can edit conditions across several breakpoints simultaneously, toggle their active state, or remove them entirely.
129
+
130
+
The toolbar buttons allow you to enable, disable, or toggle all breakpoints at once, useful when you want to run your game without stopping but don't want to lose their positions. You can also remove all when you're done with your debugging session.
131
+
107
132
## Lua debug library
108
133
109
134
Lua comes with a debug library that is useful in some situations, particularly if you need to inspect the innards of your Lua environment. You can find more information about it in [the chapter about the Debug Library in the Lua manual](http://www.lua.org/pil/contents.html#23).
0 commit comments