What Are The Steps To Quickly Debugging An Application?

  Рет қаралды 6,269

IAmTimCorey

IAmTimCorey

7 ай бұрын

How do I quickly debug an application? What are the steps to take to find and fix a problem in my code? These are the questions we will answer in today's episode of Dev Questions.
Website: www.iamtimcorey.com/
Ask Your Question: suggestions.iamtimcorey.com/
Sign Up to Get More Great Developer Content in Your Inbox: signup.iamtimcorey.com/

Пікірлер: 29
@jasperdeluna7152
@jasperdeluna7152 7 ай бұрын
Tim has been part of my software engineering journey. His YT videos helped me immensely from zero knowledge to becoming a mid developer. Thank you for your time.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Great to hear!
@mikey803
@mikey803 7 ай бұрын
I do the "talking through" method all of the time. My coworkers give me funny looks because I am "talking to myself too much". lol
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Show them your duck. That should at least give them something more entertaining to talk about.
@filipnikolic2280
@filipnikolic2280 7 ай бұрын
​@@IAmTimCoreyHahahahaha, now that's a stance :D
@khrdina
@khrdina 7 ай бұрын
@@IAmTimCorey My dev team actually has rubber ducks at our desks to help us.
@andergarcia1115
@andergarcia1115 7 ай бұрын
Greetings, Master. It is always a pleasure to hear from you.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thanks!
@ohdev2019
@ohdev2019 7 ай бұрын
Excellent advice as always. I would like to emphasize logging. There's a difference in debugging while you're building an app vs debugging after an app has been deployed to production and users begin to report crashes/bugs. Logs have proven critical in these situations for me. If a problem shows up later that doesn't appear in the log entries which may be out of the application's control, I'll add a log entry to help direct the user to a solution. I'd also like to recommend a book by David J. Agans titled "Debugging: The 9 Indispensable Rules for Finding Even the Most Elusive Software and Hardware Problems". It's a quick read and is filled with what feels like common sense advice but is easy to overlook.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thanks for sharing!
@maydinunlu
@maydinunlu 6 ай бұрын
One of the best video on the channel.
@IAmTimCorey
@IAmTimCorey 6 ай бұрын
Thank you!
@Noitcereon
@Noitcereon 7 ай бұрын
I think this is one of the most important pieces of advice to give in terms of growing yourself as a developer.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thanks!
@alijaafar99
@alijaafar99 7 ай бұрын
Thanks for the advice
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
You are welcome.
@ExtraTerrestrialDust
@ExtraTerrestrialDust 6 ай бұрын
I think I missed step 5? It seemed like you went through step 4 and then said “step 6”. I can’t seem to find the point where step 5 starts? Learning more about debugging as I’m moving into a more technical role and your videos are so clear and helpful, so thank you:)
@terjes64
@terjes64 7 ай бұрын
Good stuff. Often in a agile team with time estimates you don't have the luxury of going through all these steps. Step number one is very important. When I feel I understand the problem, I often use chatgpt as a talking out loud partner. Sometimes i refactor bad code to get a clear picture and by doing so I go through everything in a new light. If you have someone to talk to that is helpful, step back an present your problem from a higher level. They will not know exactly what you are working on, give them context, dont just blurp out an exception.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
I rarely go through all of the steps. They are designed to help you short circuit the solution, where you can quickly solve the problem and move on rather than spending time with debugging techniques that aren't needed.
@Norman_Fleming
@Norman_Fleming 7 ай бұрын
printf debugging. If you know, you know. Seriously, debugging with modern tools, as well as old school approaches are both very important. Race conditions and memory corruptions are some of the best things in life. Realizing the common assumptions make can aid a LOT in debugging things. What did the author assume when s/he wrote the code?
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thanks for sharing!
@lilcaesarman
@lilcaesarman 7 ай бұрын
Who is debugging while watching this lol... Me!
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
I hope it helps.
@lilcaesarman
@lilcaesarman 7 ай бұрын
@IAmTimCorey Great tips. I've been a dev for about 20 years. I learned most of your tips from this video the hard way haha. I love to watch your videos and "Fill in the gaps" in my knowledge
@HungTran-jx2xc
@HungTran-jx2xc 7 ай бұрын
can you summarize the 6 steps please: you talked a lot made me confused about what the steps are.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
I don't have a summary for you. Here's what I recommend: take notes. Instead of trying to remember things in your head, write them down. It will help solidify what you are learning. Otherwise, you will end up watching videos and not getting any value out of what you watched.
@sirus49
@sirus49 7 ай бұрын
Just basically identifying the issue, recreating it, debugging and checking variables and using unit tests.. talking it out.. logging...ask a co worker. Ask online if all other steps are not a success
@christianvanwyk3863
@christianvanwyk3863 7 ай бұрын
Last option = copilot
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
👍
What Is The Real Job of a Software Developer?
35:42
IAmTimCorey
Рет қаралды 6 М.
Debugging in C# - Finding and Fixing Problems in Your Application
1:28:15
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 22 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4 МЛН
What Are Some Major Mistakes Developers Make in Their Career?
37:32
Why Should I Upgrade My .NET Application?
17:24
IAmTimCorey
Рет қаралды 8 М.
C# Events | Events in C# with example | C# interview question
20:31
Code With RaiGenics
Рет қаралды 15 М.
Why EVERYONE Is Struggling to Become a Data Analyst
8:03
Learn with Lukas
Рет қаралды 253 М.
3 Ways Every Developer Fails And How To Avoid Them
26:16
IAmTimCorey
Рет қаралды 4,1 М.
Why Can't I Get A Job As A Software Developer?
34:04
IAmTimCorey
Рет қаралды 9 М.
How Do I Start My Job Well? What Do I do First?
21:19
IAmTimCorey
Рет қаралды 4,9 М.
VSCode for the C# Developer - Tim Corey - NDC London 2023
54:20
NDC Conferences
Рет қаралды 10 М.
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 803 М.
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 22 МЛН