From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Label a breakpoint

Label a breakpoint

- [Instructor] Have you ever been debugging a large application, you've got break points in multiple files, you've got break points across multiple projects, and you're having a hard time understanding where those break points live or what the purpose of them are. You put them in the application yesterday and you don't remember today why you put that break point there? I've got a solution for you, it's called break point labels. Essentially, it's a way of naming a break point, that way when you look at it in the break point window, you have a better understanding of its purpose. The first thing we need to do in this application is add a break point. I'll put some break points in this console app, and another break point over here in this course library. Let's start here on line 13, I'm calling this tour source and getting the first tour stop, so I'll put a break point here by clicking in the margin bar and also put one here on line 19, this time I'll add it by pressing F9, then I'll…

Contents