From the course: Python for JavaScript Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Debugging Python with ipdb

Debugging Python with ipdb - Python Tutorial

From the course: Python for JavaScript Developers

Start my 1-month free trial

Debugging Python with ipdb

- [Instructor] A reliable debugger will help you explore the Python language and solve many issues on your own. There is a plethora of debugging tools out there, many of which come as part of an IDE. One particular debugger I've been able to use almost everywhere is IPDB. While it takes getting used to, the ease of setup makes it worthwhile. Let's head over to the terminal and get started with IPDB. So here I am in my terminal, and I can see that my virtual environment is active when looking at the left side of my shell. It says venv in parentheses. If it's not, you can go ahead and type in source venv/bin/activate, and I'll clear my terminal. And I'm going to install IPDB by typing in pip install ipdb. Great. And that's all it takes to get started in most environments. So let's head over to my exercise files and here I am at 01_04.py. And this is code we'll be looking at at a later chapter, but I want you to pay…

Contents