Skip to content

Commit f3ed520

Browse files
authored
Merge pull request #12902 from Mikejo5000/mikejo-br24
Add content for creating breakpoint groups
2 parents 55e3187 + 2fd4c55 commit f3ed520

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Loading

docs/debugger/using-breakpoints.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use breakpoints in the debugger
33
description: Learn about breakpoints, one of the most important debugging techniques. The article covers breakpoint actions, tracepoints, conditions, and much more.
4-
ms.date: 12/06/2023
4+
ms.date: 08/13/2024
55
ms.topic: how-to
66
f1_keywords:
77
- vs.debug.breakpointswin
@@ -370,6 +370,19 @@ You can use labels to sort and filter the list of breakpoints in the **Breakpoin
370370
1. To add a label to a breakpoint, right-click the breakpoint in the source code or the **Breakpoints** window, and then select **Edit labels**. Add a new label or choose an existing one, and then select **OK**.
371371
2. Sort the breakpoint list in the **Breakpoints** window by selecting the **Labels**, **Conditions**, or other column headers. You can select the columns to display by selecting **Show Columns** in the toolbar.
372372

373+
::: moniker range=">= vs-2022"
374+
### Breakpoint groups
375+
376+
For complex debugging scenarios, you may want to create breakpoint groups to organize your breakpoints. This allows you to quickly enable and disable logical groupings of breakpoints, based upon the current scenario that you're trying to debug.
377+
378+
You can create breakpoints in the **Breakpoints** window by selecting **New > Breakpoint Group**, and providing a name for the group. To add a breakpoint to a group, right-click the breakpoint and choose **Add to Breakpoint Group** > **\<group name\>**. Or, drag-and-drop your breakpoints into the desired group.
379+
380+
![Screenshot of breakpoint groups.](../debugger/media/vs-2022/breakpoints-window-breakpoint-groups.png)
381+
382+
To set a default breakpoint group, right-click a group and select **Set as default Breakpoint Group**. When you set a default breakpoint group, newly created breakpoints are automatically added to the group.
383+
384+
::: moniker-end
385+
373386
### Export and import breakpoints
374387

375388
To save or share the state and location of your breakpoints, you can export or import them.

0 commit comments

Comments
 (0)