Debugging Tips You MUST Know as a Godot Developer

preview_player
Показать описание
Learning to Debug as a game developer is so important!! Today I share the must know debugging methods that will really help improve your Godot game dev journey! Overall this video should help to make your experience with the Godot 4 debugger so much smoother! These are a collection of methods and tips that I have learned throughout the last 6 years developing in Godot!

Chapters:
0:00 Intro
0:23 Debug or Release Mode
0:43 Custom Information HotKeys
2:23 Advanced Print Statements
3:15 How to Use Breakpoints
4:17 Other Debugging Features
4:46 My Advice to You

Thank you so much for watching, I really hope this video helped.

if you did enjoy or this video was helpful then all I ask is if you could please subscribe to help out the channel. It means so much and I love your feedback in the comments. I’ll look forward to getting back to you soon! Again thanks so much and I would love to see you again!

These Tutorials take a lot of time to create and I’m working on becoming a better Teacher and learning how to explain Godot things in a better way, if you’d like to support this journey to expand knowledge and help other game dev’s learn to create their own games then please.. Become a Member! It would mean the world and you’ll help me out so much! Thank you!

have a great rest of your day and of course be safe :)

- thanks DevWorm
Рекомендации по теме
Комментарии
Автор

Damn, its actually strange none of the courses I've done so far even mention any of this, the most they tell you about print and printt.

DucktatorD
Автор

Nice tips! I want to improve the first one a little bit. You should start the func with "if not OS.is_debug_build(): return" on the first line, and keep all the hotkeys below this. It keeps you from having to write "not OS.is_debug_build()" on every hotkey snippet.

Qasw
Автор

although i take break from gamedev and start in appdev
i still watch your amazing videos
keep up😻

jeremiahaemile
Автор

Minor detail but something that could be useful is put the is debug check first so you can short circuit on release. Technically not the biggest deal but a good habit to form in general of putting the thing most likely to end a short circuited if/etc block first to avoid extra binary checks, for those times where it is in an inner loop (and not like doing it makes the code less readable)

WizardofWestmarch
Автор

Thank you, very helpful and we can now make changes to suit.

DutchyTechTips
Автор

Im glad I found this when I'm starting to create my game for a jam

acetrainerarcane
Автор

I was wondering how I was going to start debugging and understanding various errors that occur. Again, thank you for the tips 🙏

wenng
Автор

The debug panel and remote tree can do most of this video for you without any code. You can modify values in any node in the scene tree. Although a little more manual and also pausing is a thing.

You also have "breakpoint" keyword which wasn't mentioned which can be used for condition breakpoints.

pennyloafers
Автор

Thank You for Your video! For Me personally, You chose good selection of things to cover. And i find Your explanations are well between in-depth and to the point.

Seraph
Автор

The tip about push_error was super useful, thanks!

tigwykplaysgames
Автор

I hope future versions of Godot will support better debugging. When hitting a breakpoint, it would be so nice to be able to hover over different variables/objects and see their values and properties. Often nothing happens or you just see the objects is. I have not used the print statement since coding on my Commodore 64. So having to revert to that feels so dumb.

HansMilling
Автор

Incredible advice, you earned my sub!

XGazudin
Автор

This video is so helpful although it is simple
Thanks a lot❤

YamanAlBaini
Автор

thank you DevWorm your videos are always a blessing

orglightning
Автор

As always great video! been watching you for some time now and your experience shows. Can i request that you do a video on tile maps and how to delete specific tiles/groups of tiles at a point AND inside and area. You seem to have a good understanding godot and i appreciate how you explain everything.... i have been so stuck and a lot changed with tile maps from 3-4. I KNOW people would watch it.

completelyrandomlyhandlee
Автор

That help me so much!!
You are the best

CFiu
Автор

Your tutorials are very cool, can you make a video on how to make bullet time or a dash that dealt damage on the path in Godot?

kai
Автор

You wormed your way inti ny subscribe list. And I aint complaining

fuzzy-
Автор

Best way to debug is to not make bugs in the first place. Sadly that's hard.

DrWne
Автор

is_debug_build will also be true in an exported debug build. There is a separate test to see if you're running in the editor.

MuffinMan_Ken