Debug your Godot game with this simple trick! 🤖 #shorts

preview_player
Показать описание

In this short video, I show you how you can utilise the debugger in Godot Engine to make the most of your game development!

#shorts #gamedev #godotengine
Рекомендации по теме
Комментарии
Автор

That's very nice and all, but I'll probably be printing values again in a week 😭

emi_cpl
Автор

It's so funny. After decades of programming (including professionally) and nearly every environment supporting a debugger and breakpoints, I still find myself using print statements often.

ShiloBuff
Автор

I typically include a prints(self, "text") to make it simple to filter it while playing.

Rex-syye
Автор

I keep forgetting godot has this, I'll definitely start using it more instead of print.

The only thing I wish for now is more sophisticated debugging in the actual game itself. Stuff like drawing lines/shapes or keeping debug values on the actual game screen.

There are some tools out there by other godot devs (which I 100% recommend using, stuff like being able to draw 3d lines is so helpful when working with vectors) but I think it'd be neat to have them right out of the box.

erichbauer
Автор

Ngl, It makes me feel less insecure that there's still a lot of if else even from developers because me personally I kinda felt humbled when I look on my code and there's bunch of if statement

princeedhwardhezmi
Автор

Thank youuu, I’ve been meaning to figure out how this works for ages

karim
Автор

At least in my anecdotal experience this tends to crash if your scene is heavy

bitstargazer
Автор

so that's the use of a breakpoint

GustonExE
Автор

And how to debug events as they walk through the tree?

MistaSmith
Автор

Until godot has a realtime variable watchlist like visual studio, print statements will persist.

einlandersvideos
Автор

It would be cool to start the game and in the game click a button to switch to debug mode right where we are in the game. Why decide the break point before the action?

MistaSmith
Автор

Is this only with GdScript? I currently use C# and Visual Studio in my project. Intried breakpoints, but it never pauses.

bestshadow
Автор

run with visual studio and hit breakpoints ¯\_(ツ)_/¯

driedpotatoes
Автор

Is this new in Godot 4, the stepping through lines?

slothinahat