How to add descriptive labels to breakpoints in Visual Studio

In Visual Studio if you have a large solution with a lot of breakpoints it can be confusing to know which breakpoint is which. In the below view for example it may not be obvious to us which breakpoint is the one we want to work with…

In this case it can be helpful to add arbitrary labels to our breakpoints so we can tell them apart quicker when looking at them all in the Breakpoints window.

It’s easy to add breakpoint labels in Visual Studio. First right click the breakpoint to get the Breakpoint Quick Settings dialogue up and then click ‘Edit Labels’…

Next add the label (you can add multiple if you want) you want to the breakpoint…

…and after clicking OK above the Breakpoints window will be updated with the breakpoint label you’ve just added…

Leave a Reply

Your email address will not be published. Required fields are marked *