178. What Are The Steps To Quickly Debugging An Application?

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

IAmTimCorey

IAmTimCorey

Күн бұрын

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.iamtimcore...

Пікірлер: 29
@jasperdeluna7152
@jasperdeluna7152 Жыл бұрын
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 Жыл бұрын
Great to hear!
@mikey803
@mikey803 Жыл бұрын
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 Жыл бұрын
Show them your duck. That should at least give them something more entertaining to talk about.
@filipnikolic2280
@filipnikolic2280 Жыл бұрын
​@@IAmTimCoreyHahahahaha, now that's a stance :D
@khrdina
@khrdina Жыл бұрын
@@IAmTimCorey My dev team actually has rubber ducks at our desks to help us.
@ohdev2019
@ohdev2019 Жыл бұрын
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 Жыл бұрын
Thanks for sharing!
@Noitcereon
@Noitcereon Жыл бұрын
I think this is one of the most important pieces of advice to give in terms of growing yourself as a developer.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thanks!
@andergarcia1115
@andergarcia1115 Жыл бұрын
Greetings, Master. It is always a pleasure to hear from you.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thanks!
@maydinunlu
@maydinunlu Жыл бұрын
One of the best video on the channel.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thank you!
@ExtraTerrestrialDust
@ExtraTerrestrialDust Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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.
@alijaafar99
@alijaafar99 Жыл бұрын
Thanks for the advice
@IAmTimCorey
@IAmTimCorey Жыл бұрын
You are welcome.
@Norman_Fleming
@Norman_Fleming Жыл бұрын
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 Жыл бұрын
Thanks for sharing!
@lilcaesarman
@lilcaesarman Жыл бұрын
Who is debugging while watching this lol... Me!
@IAmTimCorey
@IAmTimCorey Жыл бұрын
I hope it helps.
@lilcaesarman
@lilcaesarman Жыл бұрын
@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 Жыл бұрын
can you summarize the 6 steps please: you talked a lot made me confused about what the steps are.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Last option = copilot
@IAmTimCorey
@IAmTimCorey Жыл бұрын
👍
184. What Is The Real Job of a Software Developer?
35:42
IAmTimCorey
Рет қаралды 7 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
BEST WAY to read and understand code
17:24
The Cherno
Рет қаралды 170 М.
139. What Are Your Thoughts on Entity Framework Core vs. Dapper?
21:49
Be a Better Programmer By Mastering Debugging
12:34
Andy Sterkowitz
Рет қаралды 28 М.
181. How Do I Start My Job Well? What Do I do First?
21:19
IAmTimCorey
Рет қаралды 5 М.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 418 М.
180. Why Can't I Get a Job as A Software Developer?
34:04
IAmTimCorey
Рет қаралды 10 М.
How IDisposable and Using Statements Work Together in C#
10:01
IAmTimCorey
Рет қаралды 34 М.
Making Smallest Possible Linux Distro (x64)
27:43
Nir Lichtman
Рет қаралды 156 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,7 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН