Welcome to the introduction to debugging in Python. This course does not require any prior knowledge of debugging, but it does require a basic knowledge of Python.
Since we will be using GitHub and GitHub Skills templates, I strongly suggest completing two GitHub skills courses:
- Introduction to GitHub
- Code with Codespace (the first 3 steps are enough for this course)
The entire course will have 3 parts or steps, each step will have multiple sections that will require reading short text or specific section from the external sources, watching a short video or practicing your knowledge in hands-on activities. Every step should take no more than 1--2, hours and significantly less if you have prior experience.
- what are the Python errors and exceptions?
- how to read Python traceback?
- what is debugging?
- debugging tools and methods
- introduction to debugging with
pdb
- Right-click Start course and open the link in a new tab.
- In the new tab, most of the prompts will automatically fill in for you.
- For owner, choose your personal account or an organization to host the repository.
- We recommend creating a public repository, as private repositories will use Actions minutes.
- Scroll down and click the Create repository button at the bottom of the form.
- After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.
Get help: Submit an issue
Acknowledgment: This work was supported by the Better Scientific Software Fellowship Program, a collaborative effort of the U.S. Department of Energy (DOE), Office of Advanced Scientific Research via ANL under Contract DE-AC02-06CH11357 and the National Nuclear Security Administration Advanced Simulation and Computing Program via LLNL under Contract DE-AC52-07NA27344; and by the National Science Foundation (NSF) via SHI under Grant No. 2327079.