Join Bruce Van Horn for an in-depth discussion in this video Debugging, part of Learning Python with PyCharm.
- [Narrator] Our test run has revealed a problem.…But it isn't inherently obvious what it is.…Just looking at this, it's a very simple function,…there's only a few lines in it.…So what could possibly be going wrong?…To examine this, we're going to use the debugger in PyCharm.…If you've used any other IDE before,…especially Visual Studio or Eclipse,…I think you'll be right at home…with the debugging tools in PyCharm.…I'm going to select line 19, and I'm going to click right here…in the gutter to add a breakpoint.…And then, for the sake of completeness,…I'll go ahead and go to the calling function.…
We had decided that more than likely,…the problem is going to be here in url_utilities.py,…because we'd clicked on the stack trace…and it brought us here.…I'm going to select the calling function from the stack trace.…And I'll go ahead and set a break point,…right here, below where it says reading, on line 13.…And let's give this another run.…I'm going to drag this down, to give myself…a little bit more room, in the code.…
AuthorBruce Van Horn
- Installing the PyCharm, Git, and Pypy packages
- Adding functions
- Refactoring code
- Calling packages
- Debugging code
- Creating databases
- Working with in-line SQL
- Creating web projects with PyCharm
Skill Level Beginner
1. First Steps with PyCharm
2. Code Quality
3. Working with Databases
4. Web Projects
Odds and ends5m 42s
Next steps1m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.