Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is debugging?
Think about what happens if code has issues.
What command is used to set a breakpoint in pdb?
What do we need to do before we can use pdb?
What does the command 'n' do in pdb?
Think about incrementing your position in code.
True or False: You should avoid print-debugging in your production code.
What would be the risks of leaving prints in a finished application?
You’re debugging an application but the output is inconsistent. Describe how you would utilize both pdb and logging to resolve the issue.
What specific variables might cause discrepancies in outputs?
A user reports that a certain feature crashes the application intermittently. How would you go about debugging this issue step-by-step?
Think about how the conditions might vary each time.
4 more questions in this section. Enroll free to practise them all.
Enroll free