How can I skip loops when debugging?

Godot Version

4.3.dev1

Question

How can I skip loops like the one below when debugging? Its very impractical having to press F10 or F11 hundreds of times.

for x in range(room.position.x, room.end.x):
	for y in range(room.position.y, room.end.y):
		cell_data.append(Vector2i(x, y))

Do I have to introduce a function like below so I can step over it using F10 or is there another, quicker way?

func append_room_to_cell_data(room: Rect2i) -> void:
	for x in range(room.position.x, room.end.x):
		for y in range(room.position.y, room.end.y):
			cell_data.append(Vector2i(x, y))

You can place a break-point after the loop and press F12

1 Like