Skip to content

Commit c737b30

Browse files
committed
Mention the lack of debugger support in Running code in the editor
1 parent c5da624 commit c737b30

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tutorials/plugins/running_code_in_the_editor.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ Modifications in the editor are permanent. For example, in the next
120120
section when we remove the script, the node will keep its rotation. Be careful
121121
to avoid making unwanted modifications.
122122

123+
Using the debugger and breakpoints on tool scripts is not currently supported.
124+
Breakpoints placed in the script editor or using the ``breakpoint`` keyword are
125+
ignored. You can use print statements to display the contents of variables
126+
instead.
127+
123128
Try ``@tool`` out
124129
-----------------
125130

tutorials/scripting/debug/debugger_panel.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ You can use the buttons in the top-right corner to:
4848
- **Break**. This button pauses the game's execution.
4949
- **Continue**. This button resumes the game after a breakpoint or pause.
5050

51+
.. note::
52+
53+
Using the debugger and breakpoints on :ref:`tool scripts <doc_running_code_in_the_editor>`
54+
is not currently supported. Breakpoints placed in the script editor or using
55+
the ``breakpoint`` keyword are ignored. You can use print statements to
56+
display the contents of variables instead.
57+
5158
Errors
5259
------
5360

0 commit comments

Comments
 (0)