Debugging Tips You MUST Know as a Godot Developer

  Рет қаралды 9,337

DevWorm

DevWorm

Күн бұрын

Пікірлер: 92
@DucktatorD
@DucktatorD 2 ай бұрын
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.
@orglightning
@orglightning 2 ай бұрын
devworm is goated
@Qas22w
@Qas22w 2 ай бұрын
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.
@dev-worm
@dev-worm 2 ай бұрын
that is a very good point! that would make it much simpler
@olivermatthews8110
@olivermatthews8110 14 күн бұрын
Also, even when doing it in a single if statement, you should* put the debug check first as it will be ever so slightly more performant due to lazy evaluation. *Strictly you should put conditionals in descending order of probability, but weighted by check cost; so there are times putting debug checks first are wrong, but realistically you can safely ignore them.
@jeremiahaemile2008
@jeremiahaemile2008 2 ай бұрын
although i take break from gamedev and start in appdev i still watch your amazing videos keep up😻
@dev-worm
@dev-worm 2 ай бұрын
aw thank you so much!! it truly means the world jeremiah!! it always makes me so happy to see your comment!
@DutchyTechTips
@DutchyTechTips 2 ай бұрын
Thank you, very helpful and we can now make changes to suit.
@acetrainerarcane1755
@acetrainerarcane1755 2 ай бұрын
Im glad I found this when I'm starting to create my game for a jam
@dev-worm
@dev-worm 2 ай бұрын
that is amazing!! i hope it can help!! goodluck in the game jam!! update me on how it goes!
@Seraph120
@Seraph120 2 ай бұрын
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.
@dev-worm
@dev-worm 2 ай бұрын
Glad it was helpful!
@we1n1ng
@we1n1ng 2 ай бұрын
I was wondering how I was going to start debugging and understanding various errors that occur. Again, thank you for the tips 🙏
@dev-worm
@dev-worm 2 ай бұрын
i’m glad it was helpful!! your comment has made my day!! it truly means the world!! if you have any questions just let me know!!
@we1n1ng
@we1n1ng 2 ай бұрын
@@dev-worm I appreciate your response and you are most welcome. I will, thank you. Please keep up the good work you're doing 🙂
@tigwykplaysgames
@tigwykplaysgames 2 ай бұрын
The tip about push_error was super useful, thanks!
@dev-worm
@dev-worm 2 ай бұрын
so happy to hear!!
@completelyrandomlyhandlee
@completelyrandomlyhandlee 2 ай бұрын
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.
@dev-worm
@dev-worm 2 ай бұрын
that is a great suggestion!! i just noted it down and will look into it in more depth soon!! hope i can help!
@YamanAlBaini
@YamanAlBaini 2 ай бұрын
This video is so helpful although it is simple Thanks a lot❤
@dev-worm
@dev-worm 2 ай бұрын
thank you!! i hope it provided a bit of value!
@neptun3189
@neptun3189 2 ай бұрын
grats on 30k dude, so good to see
@dev-worm
@dev-worm 2 ай бұрын
thank you so much! it means the world!
@ndexer
@ndexer Ай бұрын
This channel is gold
@HansMilling
@HansMilling 2 ай бұрын
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.
@WizardofWestmarch
@WizardofWestmarch 2 ай бұрын
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)
@dev-worm
@dev-worm 2 ай бұрын
that is smart! i don’t know why but i never even thought of that! you learn something new everyday! thanks!
@WizardofWestmarch
@WizardofWestmarch 2 ай бұрын
@@dev-worm Not a problem, thank you for releasing high quality Godot content, we need to keep creating more and more to help everyone who wants to try it :)
@pennyloafers
@pennyloafers 2 ай бұрын
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.
@orglightning
@orglightning 2 ай бұрын
thank you DevWorm your videos are always a blessing
@dev-worm
@dev-worm 2 ай бұрын
thank you so much!! that means the world to me!! i hope it was able to provide a bit of value!
@CFiu8737
@CFiu8737 2 ай бұрын
That help me so much!! You are the best
@dev-worm
@dev-worm 2 ай бұрын
so happy to help!!
@XGazudin
@XGazudin 2 ай бұрын
Incredible advice, you earned my sub!
@dev-worm
@dev-worm 2 ай бұрын
thank you so much!! so happy to hear!
@kai19038
@kai19038 2 ай бұрын
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?
@drJavi
@drJavi 2 ай бұрын
This will help a lot. Thanks for sharing.
@dev-worm
@dev-worm 2 ай бұрын
thank you!! i hope it can help!
@Volt-Eye.
@Volt-Eye. 2 ай бұрын
Congo for 30 K
@dev-worm
@dev-worm 2 ай бұрын
thank you so much!! it means the world!
@fuzzy-02
@fuzzy-02 2 ай бұрын
You wormed your way inti ny subscribe list. And I aint complaining
@dev-worm
@dev-worm 2 ай бұрын
lol thats actually funny.. thank you!! just happy i could help!
@dragongoddragneel7106
@dragongoddragneel7106 2 ай бұрын
Thanks for the debugging guide.
@dev-worm
@dev-worm 2 ай бұрын
hope it was helpful!! thank you!
@dragongoddragneel7106
@dragongoddragneel7106 2 ай бұрын
@@dev-worm if you are taking video suggestions. Here are somewhat different of mine: 1. Games made in Godot engine each month top 5-10 2. New Video series about making popular game modes 3. In-depth guides about popular godot nodes. 4. Some stuff you discovered that would save others time.
@Rotado
@Rotado 2 ай бұрын
Really helpful for a beginner
@dev-worm
@dev-worm 2 ай бұрын
glad to hear!! thanks!
@DrW1ne
@DrW1ne 2 ай бұрын
Best way to debug is to not make bugs in the first place. Sadly that's hard.
@thesomeone2nd
@thesomeone2nd 2 ай бұрын
More like impossible unless you practice the same project a lot of times.
@dev-worm
@dev-worm 2 ай бұрын
i wish it wasn’t hard lol
@hotcrossbun26
@hotcrossbun26 2 ай бұрын
I feel so stupid now for writing code with bugs in it. It was this simple the whole time 😂
@NexNoctis
@NexNoctis 2 ай бұрын
That's like saying: 'The secret to an endless life is to be immortal.' It it true, but it's not helpful at all :D
@DrW1ne
@DrW1ne 2 ай бұрын
@@NexNoctis lmao
@bloop1504
@bloop1504 2 ай бұрын
hi! im commenting on this because its your most recent video, but i come from your wall jumping and wall slide tutorial! amazing btw, it's been such a great help in my beginning journey as a godot developer! i'm having an issue though, when i first tried your code, i didn't like the fact that the player had the ability to wall jump multiple times on the same wall. so, to try and fix this i implemented code that used rays to check which wall the player was last on and setting if they can jump on the wall to true or blah blah blah, so that they could wall jump between two DIFFerent walls. however, the player is able to exploit this code because they can wall jump on a wall, quickly turn to the other direction, and then quickly turn back to the previous wall and this resets their wall jump, thus letting them jump infinite amount of times on the same wall. is there any way you could try and help me fix this issue? i'm not sure what to do whatsoever, i've thought about adding some kind of cooldown to the wall jump, but i'd rather not because that could stop the player from jumping from two different walls quickly. anyways, your videos have been such a great help to me overall and this is just a tiny issue i have! thank you!!
@NIGHTMARE-yp4oz
@NIGHTMARE-yp4oz 2 ай бұрын
@@bloop1504 just make it a feature. If you don't want the player to walljump to a place just make it closed. You can checkout hollow knight, it doesn't have any cool down on walljump and has implemented it beautifully
@MuffinMan_Ken
@MuffinMan_Ken 2 ай бұрын
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.
@kunai9809
@kunai9809 2 ай бұрын
0:33 of course there are differences other than that function... Release builds are further optimized than debug builds
@LocherYT
@LocherYT 2 ай бұрын
i am honestly too lazy to implement proper debugging scripts to set HP or other variables. I usually go straight into the remote tab and tweak thinks around until they look right
@do_it_like_rei
@do_it_like_rei 2 ай бұрын
I''m watching that platformer series now! Can you please make a video on an in-game clock and calendar? I can't figure it out and if anyone can teach me, it's you
@dev-worm
@dev-worm 2 ай бұрын
ill start looking into creating a tutorial about it!! thanks for letting me know!! goodluck in the platformer series!! if you ever need anything just let me know!
@do_it_like_rei
@do_it_like_rei 2 ай бұрын
@@dev-worm You're amazing, thanks sm!!
@somebody7090
@somebody7090 2 ай бұрын
hey i was wondering if you could do a vid on making your character shoot projectiles (like knives or from a bow and arrow) ty if you see this
@dev-worm
@dev-worm 2 ай бұрын
I have a plan for this in a upcoming series!! so I hope that will beable to help!!
@TRFWINGS
@TRFWINGS 2 ай бұрын
can you make a tutorial on how to make enemy ai that con do platforming/jumping/moving
@Burnrate
@Burnrate 2 ай бұрын
No mention of print_debug()? I know it's a simple one but worth mentioning for a video like this. Or print_stack too which i find to be rarely useful though.
@dev-worm
@dev-worm 2 ай бұрын
youre right i shouldve mentioned print_debug() I dont know why I didnt! thanks for pointing that out!!
@crazycross5501
@crazycross5501 2 ай бұрын
Are you able to do 3d game toutorals one day 😊 thank you for all the 2d ones
@dev-worm
@dev-worm 2 ай бұрын
i may start looking into them soon!!
@Zero-el6gs
@Zero-el6gs 2 ай бұрын
Do you recommend learning gd script for someone new to game development or c#?
@dev-worm
@dev-worm 2 ай бұрын
i really recommend gdscript cause it is kinda like writing english instead of code… but you get to learn the way programming is structured and everything
@NikaDolidze-rg2xy
@NikaDolidze-rg2xy 2 ай бұрын
whats the difference between OS.has_feature("debug") and OS.is_debug_build() ?
@Volt-Eye.
@Volt-Eye. 2 ай бұрын
1:05 is it your PC Fan ?
@nehasrivastava7992
@nehasrivastava7992 2 ай бұрын
nice video❤❤
@dev-worm
@dev-worm 2 ай бұрын
thank you!!
@harshguptaxg2774
@harshguptaxg2774 2 ай бұрын
Best way to debug is print statements 😂
@dev-worm
@dev-worm 2 ай бұрын
this is so true lol.. just make sure to remove them after
@harshguptaxg2774
@harshguptaxg2774 2 ай бұрын
@@dev-worm lol that's another headache
@NIGHTMARE-yp4oz
@NIGHTMARE-yp4oz 2 ай бұрын
Hey can you please create a new latest video on how to make a 2d physics based grappling that we can use to swing. I have seen your old one but its just too long and old and not suiting ( can you please try to keep it simple)
@dev-worm
@dev-worm 2 ай бұрын
ill start working on one!! thanks for letting me know!
@NIGHTMARE-yp4oz
@NIGHTMARE-yp4oz 2 ай бұрын
Thanks man you saved my game
@NIGHTMARE-yp4oz
@NIGHTMARE-yp4oz 2 ай бұрын
I love how much you care and listen to your audience, you won yourself a permanent and loyal sub
@danielsalimonu
@danielsalimonu 2 ай бұрын
please can i join in making games with you, im really good at logic
@dev-worm
@dev-worm 2 ай бұрын
thatd be fun! we could do a game jam together
@danielsalimonu
@danielsalimonu 2 ай бұрын
@@dev-worm so were do i start
@danielsalimonu
@danielsalimonu 2 ай бұрын
devworm?
@B33BopTheAlien
@B33BopTheAlien 2 ай бұрын
WHEN IS FACE REVEAL? :D
@dev-worm
@dev-worm 2 ай бұрын
ahh..
@halfsine
@halfsine 2 ай бұрын
debug build is not a very good idea imo. debug mode should be accessible to any player, but hidden away. a lot of games that give the player access to debug mode are also some of the best and most modded games of all time
@dev-worm
@dev-worm 2 ай бұрын
that is actually a really good point
@RafaFiedo
@RafaFiedo 2 ай бұрын
very nice usage of OS.is_debug_build() !
@thygrrr
@thygrrr Ай бұрын
print_debug(), man. print_debug().
How To IMPROVE The Overall Look of Your Game in Godot
4:18
Programming a tactical strategy game in Godot 4
14:50
The Shaggy Dev
Рет қаралды 16 М.
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 32 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 4 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Godot Scripts I add to Every Game
12:34
Aarimous
Рет қаралды 27 М.
The Best Of Godot Games
10:00
Gamefromscratch
Рет қаралды 33 М.
Do I need a Game Design Document?
5:20
Alchemy Sheep
Рет қаралды 24 М.
The Tools I Use For Full Time Indie Game Development
12:09
Firebelley Games
Рет қаралды 15 М.
10 Godot Features Hidden in Plain Sight 👀
5:10
Bacon and Games
Рет қаралды 12 М.
Draw fewer tiles - by using a Dual-Grid system!
6:22
jess::codes
Рет қаралды 504 М.
Saving and loading games with Godot
1:09:38
Godotneers
Рет қаралды 58 М.
5 VS 5 DEVS - Which TEAM Makes the BEST GAME without COMMUNICATING?
17:01
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 32 МЛН