From the course: Eclipse Essential Training
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Debugging a Python app - Eclipse Tutorial
From the course: Eclipse Essential Training
Debugging a Python app
- [Instructor] Now we're going to take a look at debugging a Python application. So I have my unit tests here, but the source code's changed since we last looked at it. And this is one of the advantages that you get of writing unit tests for your code. When you change the source code, you run your unit tests, which expect a given output assuming a given input, and if the unit tests fail, chances are there's a bug in your source code. So what I'm going to do is run these as unit tests, and when I hit the Run button, I'm seeing there's a failure on this assertion. You might need to scroll around in the console to find that, but I'm seeing it's on this line, where the winner is checking against rock, and then paper being equal to computer. Unfortunately, with PyDev and the version of Python that we're using, we're not able to pause the running application in Eclipse, but there is a workaround. If I go into my code and I find where I want to pause the debugger, I can write those into the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.