05: Python debugging tutorial

Q. How would you go about debugging Python code? A. Firstly, import pdb

Secondly, use “pdb.set_trace()” where ever you want the execution to pause as shown below with “addition.py” file.

Thirdly, run your code as

When your…

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only.

Register

80+ Free Java FAQs

80+ Free Big Data FAQs

Already a member? Log in here

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data