Skip to content

Commit 9840c45

Browse files
authored
Merge pull request #9124 from chrisl8/update_debugging_tools_for_4.3
Update Overview of Debugging Tools for 4.3.
2 parents c1cce97 + e939756 commit 9840c45

File tree

3 files changed

+138
-20
lines changed

3 files changed

+138
-20
lines changed
Binary file not shown.
Binary file not shown.

tutorials/scripting/debug/overview_of_debugging_tools.rst

Lines changed: 138 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,163 @@ Here are the descriptions of the options:
3535
Deploy with Remote Debug
3636
++++++++++++++++++++++++
3737

38-
When exporting and deploying, the resulting executable will attempt to connect
39-
to the IP of your computer for debugging.
38+
When this option is enabled, using one-click deploy will make the executable
39+
attempt to connect to this computer's IP so the running project can be debugged.
40+
This option is intended to be used for remote debugging (typically with a mobile
41+
device).
42+
You don't need to enable it to use the GDScript debugger locally.
4043

41-
Small Deploy with Network FS
42-
++++++++++++++++++++++++++++
44+
Small Deploy with Network Filesystem
45+
++++++++++++++++++++++++++++++++++++
4346

4447
This option speeds up testing for games with a large footprint on remote devices.
4548

46-
When **Small Deploy with Network FS** is on, instead of exporting the full game,
47-
deploying the game builds a minimal executable. The editor then provides files
48-
from the project over the network.
49+
When **Small Deploy with Network Filesystem** is on, instead of exporting the
50+
full game, deploying the game builds a minimal executable. The editor then
51+
provides files from the project over the network.
4952

50-
Also, on Android, the game is deployed using the USB cable to speed up deployment.
53+
Also, on Android, the game is deployed using the USB cable to speed up
54+
deployment.
5155

5256
Visible Collision Shapes
5357
++++++++++++++++++++++++
5458

55-
This option makes collision shapes and raycast nodes visible in the running game.
59+
When this option is enabled, collision shapes and raycast nodes (for 2D and 3D)
60+
will be visible in the running project.
61+
62+
Visible Paths
63+
+++++++++++++
64+
65+
When this option is enabled, curve resources used by path nodes will be visible
66+
in the running project.
5667

5768
Visible Navigation
5869
++++++++++++++++++
5970

60-
Navigation meshes and polygons will be visible on the running game.
71+
When this option is enabled, navigation meshes, and polygons will be visible in
72+
the running project.
6173

62-
Sync Scene Changes
63-
++++++++++++++++++
74+
Visible Avoidance
75+
+++++++++++++++++
76+
77+
When this option is enabled, avoidance object shapes, radiuses, and velocities
78+
will be visible in the running project.
79+
80+
Debug CanvasItem Redraws
81+
++++++++++++++++++++++++
82+
83+
When this option is enabled, redraw requests of 2D objects will become visible
84+
(as a short flash) in the running project.
85+
This is useful to troubleshoot low processor mode.
86+
87+
Synchronize Scene Changes
88+
++++++++++++++++++++++++++
6489

65-
With this option, any change you make to a scene in the editor at runtime
66-
appears instantly. When used remotely on a device, this is more efficient
67-
with the network filesystem.
90+
When this option is enabled, any changes made to the scene in the editor will be
91+
replicated in the running project.
92+
When used remotely on a device, this is more efficient when the network
93+
filesystem option is enabled.
6894

69-
Sync Script Changes
70-
+++++++++++++++++++
95+
Synchronize Script Changes
96+
+++++++++++++++++++++++++++
7197

72-
Any script that is saved will be reloaded on the running game. When used
98+
When this option is enabled, any changes made to the script in the editor will
99+
be reloaded in the running project. When used
73100
remotely on a device, this is more efficient with the network filesystem.
74101

102+
Keep Debug Server Open
103+
++++++++++++++++++++++
104+
105+
When this option is enabled, the editor debug server will stay open and listen
106+
for new sessions started outside of the editor itself.
107+
108+
Customize Run Instances...
109+
++++++++++++++++++++++++++
110+
111+
This opens a dialog allowing you to tell Godot to run multiple instances of the
112+
game at once, and to specify the command line arguments for each instance. This
113+
is especially useful when building and debugging multiplayer games.
114+
115+
.. image:: img/customize_run_instances.webp
116+
117+
Enable Multiple Instances
118+
^^^^^^^^^^^^^^^^^^^^^^^^^
119+
120+
When this option is enabled, the editor will run multiple instances of the
121+
project at once when you Run Project.
122+
123+
Below this checkbox is a selector to pick how many instances to run.
124+
125+
Checking the box and setting this to only 1 is the same as not checking this box
126+
at all.
127+
128+
Main Run Args
129+
^^^^^^^^^^^^^
130+
131+
These are the arguments that will be passed to **every** instance of the project
132+
when you Run Project, unless you select "Enabled" under "Override Main Run Args"
133+
for a specific instance.
134+
135+
Note that these arguments are space-separated.
136+
137+
.. tip::
138+
139+
These arguments can be accessed in your script by using
140+
:ref:`get_cmdline_args<class_OS_method_get_cmdline_args>`.
141+
142+
.. warning::
143+
144+
Even if you uncheck "Enable Multiple Instances" these arguments will be
145+
passed when you Run Project.
146+
147+
Main Feature Tags
148+
^^^^^^^^^^^^^^^^^
149+
150+
These are the feature tags that will be passed to **every** instance of the
151+
project when you Run Project, unless you select "Enabled" under "Override Main
152+
Tags" for a specific instance.
153+
154+
Override Main Run Args
155+
^^^^^^^^^^^^^^^^^^^^^^
156+
157+
When this is enabled, the arguments in the "Main Run Args" field will **not be
158+
passed** to this specific instance of the project when you Run Project.
159+
160+
Launch Arguments
161+
^^^^^^^^^^^^^^^^
162+
163+
These are the arguments that will be passed to this specific instance of the
164+
project when you Run Project. They will be **combined with** the "Main Run Args"
165+
unless you select "Enabled" under "Override Main Run Args".
166+
167+
Override Main Tags
168+
^^^^^^^^^^^^^^^^^^
169+
170+
When this is enabled, the tags in the "Main Feature Tags" field will **not be
171+
passed** to this specific instance of the project when you Run Project.
172+
173+
Feature Tags
174+
^^^^^^^^^^^^
175+
176+
These are the feature tags that will be passed to this specific instance of the
177+
project when you Run Project. They will be **combined with** the "Main Feature
178+
Tags" unless you select "Enabled" under "Override Main Tags".
179+
180+
.. warning::
181+
If you want to pass "User" arguments, that can be accessed with
182+
:ref:`get_cmdline_user_args<class_OS_method_get_cmdline_user_args>` then you
183+
must prefix them with two dashes **and a space** like `-- one two three`.
184+
185+
Be aware that these dashes will apply to arguments added later in the
186+
"Launch Arguments" on a per instance basis, which can cause some confusion
187+
when combining the `Main Run Args` and `Launch Arguments`.
188+
189+
If you place `-- one two three` in the "Main Run Args" and `-- four five
190+
six` in the "Launch Arguments" then the final command line arguments will be
191+
`one two three -- four five six`. This is because the `--` is repeated in
192+
the "Launch Arguments".
193+
194+
75195
.. _doc_debugger_tools_and_options:
76196

77197
Script editor debug tools and options
@@ -102,8 +222,6 @@ The **Break** button causes a break in the script like a breakpoint would.
102222
**Step Over** goes to the next line of code, and **Step Into** goes into
103223
a function if possible. Otherwise, it does the same thing as **Step Over**.
104224

105-
The **Keep Debugger Open** option keeps the debugger open after a scene
106-
has been closed.
107225
The **Debug with External Editor** option lets you debug your game with an external editor.
108226
This option is also accessible in **Editor Settings > Debugger**.
109227

0 commit comments

Comments
 (0)