Debugging - Vim
00:00 Welcome to our third video about VIM. In this video, we will talk about debugging, and you will see that this video will be pretty short. Weâve learned that debugging is an important feature for a text editor or an IDE because itâs just something that, as a developer, youâre going to have to do a lot. So, switching back to our code here,
00:20 letâs say we have a little bug in hereâsomething that is not actually in the way that we want it to be.
00:28 If I run this code nowânow that we learned how to run it beforeâI donât get the output that I expected, so my numbers are not being squared. I donât really have a way to figure out whatâs going on in terms of debugging using VIM. VIM just does not have this functionality built-in.
00:46
There are ways to extend the functionality of VIMâyou can install plugins, et cetera, et cetera. Or you can use tools that come with Python, so the way to do this in here would, for example, be import pdbâthe Python debuggerâand then work forward from there.
01:00
Iâm not going to go into this in this tutorial, but Real Python has a nice introduction for using pdb, so weâll link to that in the notes of the video.
01:08 But the takeaway for this section hereâfor VIMâis that as an editor, while itâs very quick and youâd have access to it on all Unix systems, thereâs just some very important features that it doesnât come with by default.
01:21 And one of thoseâan important oneâis debugging. So in this section, Iâve mentioned a bit that thereâs ways to extend the functionality of VIM with plugins, and in the next section, I will show you how to easily improve the appearance and working with VIM in a way that actually does not yet need any plugins, but that already comes built-in.
01:41 However, you need to switch it on and you need to know about it, so in the next video, weâre going to take a look at that.
Become a Member to join the conversation.

Martin Breuss RP Team on Feb. 19, 2020
Here’s the Real Python article on Debugging with pdb and the associated Video Course.