In this video, learn how to enhance your Python debugging skills by setting breakpoints and then using different available debugging tools within Eclipse. Explore the Call Stack window; look at the Variables, Breakpoint, and Expression windows; set watches; and use the Outline window as well as bookmarks to navigate the code.
- [Burkhard] In the previous video,…we started to separate points.…In this video,…we will extend our Python development debugging skills.…Let us continue to use the example from our previous video.…In the previous video, we had created two classes.…The first class we called Python Projects,…the second class we called Utilities…and this second Utilities class inherits…from the first class.…
In the self-testing main section,…we create two instances of each class,…passing it in the same message.…Let us next place a breakpoint…at this line of the code at the print statement…of the second class.…Where we now execute our code by clicking the debug button,…the code execution will stop where we place the breakpoint.…At the breakpoint, we can now use the callstack window…located at the top left of the IDE.…
Currently, our code execution stopped…at this place in the code, but when we click on here,…it jumps to where it was called from.…All we can see here is that the self-print message method…was called within the Python Projects' class,…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service