From 13a9228211a4b5f2a9176534f9517646822b307a Mon Sep 17 00:00:00 2001 From: Dylan McCall Date: Wed, 18 Sep 2024 22:06:41 -0700 Subject: [PATCH] Add a breakpoint block This block adds the "breakpoint" keyword, which pauses execution when debugging an application. --- addons/block_code/blocks/log/breakpoint.tres | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 addons/block_code/blocks/log/breakpoint.tres diff --git a/addons/block_code/blocks/log/breakpoint.tres b/addons/block_code/blocks/log/breakpoint.tres new file mode 100644 index 00000000..a7020222 --- /dev/null +++ b/addons/block_code/blocks/log/breakpoint.tres @@ -0,0 +1,17 @@ +[gd_resource type="Resource" load_steps=2 format=3 uid="uid://bddy0d4xdv20c"] + +[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_xva04"] + +[resource] +script = ExtResource("1_xva04") +name = &"breakpoint" +target_node_class = "" +description = "Pause execution and show the current line of code in the debugger." +category = "Log" +type = 2 +variant_type = 0 +display_template = "Breakpoint" +code_template = "breakpoint" +defaults = {} +signal_name = "" +scope = ""