Skip to main content

Command Palette

Search for a command to run...

Day 13: Debugging - How To Find and Fix Errors in Your Code

Published
1 min read
Day 13: Debugging - How To Find and Fix Errors in Your Code
K

Just a man trying to code my life into existence. Software Engineer at Dealer Inspire working with #PHP, #Python, and #JS. Journaling my experiences on new languages and technologies at blacknerd.dev

Today's Lesson

This write-up is going to be VERY short. Just want to note some of the tips and tools Angela mentioned.

General Tips

There were a few general tips she mentioned that always come in handy when debugging:

  • Descripe the problem
  • Reproduce the bug
  • Evaluate each line
  • Utilize print()....a lot lol
  • Using an actual Debugger

I won't go into the details of each but I have some other resources bookmarked if needed.

The Debugger

The Debuggers she recommended were Thony (desktop app) and Python Tutor (https://pythontutor.com/). I downloaded Thony but didn't seem to be working for me (most likely not doing something correct on my end) so I used PT. Also, PT shows a visualization along with the step-by-step of the program.

Screenshot: Screen Shot 2022-09-21 at 9.52.09 PM.png

EOD

Like I said, very short write up but I did learn a few good tips for debugging.



100 Days Of Code - Python

Part 15 of 28

My journey of learning Python by going through a 100 Days of Code course. The main focus is for me to reflect on what I learned and have written summaries to come back to for future reference.

Up next

Day 12: Global / Local Scope & Number Guessing Game

Learning about Local and Global scope plus building a Number Guessing Game