taquion
taquion

Reputation: 2767

Is it possible to enable/disable all breakpoints with project scope only (Visual Studio 2015 and above)?

Let's say I have a solution with 10 projects, it is an old code base and I am just getting familiar with it. I am doing a lot of debugging and putting breakpoints here and there. I would like to enable or disable all breakpoint in a given project (i.e data access project) but not in all the solution. I want to do this without manually disabling each breakpoint.

Is there a way to do this? If so, which is it? Is there an extension or third party tool that could help me? (I am using resharper but did not find any way to do this)

Upvotes: 0

Views: 366

Answers (1)

0xFF
0xFF

Reputation: 838

In the breakpoint panel, in the toolbar you can click on Columns and check Function. It will add a column with the fully qualified location of the breakpoint (well, up to the function name). Click on the Function header to sort by Function and your breakpoints will be sorted and thus grouped together. You can then shift select the range you want to disable and uncheck one of them, they will all be disabled.

This assumes a somewhat sane naming convention though.

Upvotes: 1

Related Questions