Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the command import ipdb; ipdb.set_trace() do?
Think about where you would like to inspect the code execution.
What is the purpose of the p command in ipdb?
What command helps you see variable values?
What is the primary function of ipdb?
Consider what you do when checking code for errors.
True or False: ipdb offers enhanced features compared to pdb.
Think about your experience with the two debuggers.
Use ipdb to debug a function that throws an error by setting the breakpoint just before the error occurs. Document each step you take and the output for each variable you inspect.
Focus on the context of the error, not just the error message.
While debugging, your colleague asks how you would inspect the behavior of a function returning a list. Write the ipdb commands you would use to explore its content.
Consider what you need to see in the output to understand the function's return.
6 more questions in this section. Enroll free to practise them all.
Enroll free