Skip to content

Commit e763044

Browse files
authored
Merge pull request #4800 from andysterland/andsterAddDataBpComment
Updating data bp limitations
2 parents a7ee776 + c3b7d02 commit e763044

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/debugger/using-breakpoints.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ To visually trace breakpoints during code execution, see [Map methods on the cal
138138

139139
4. Add the following to the **Function Name** box, and select **C++** language.
140140

141-
```C++
142-
((my_class *) 0xcccccccc)->my_method
143-
```
141+
```cpp
142+
((my_class *) 0xcccccccc)->my_method
143+
```
144144

145145
::: moniker range=">= vs-2019"
146146

@@ -161,7 +161,7 @@ Data breakpoints in .NET Core won't work for:
161161
- Properties that are not expandable in the tooltip, Locals, Autos, or Watch window
162162
- Static variables
163163
- Classes with the DebuggerTypeProxy Attribute
164-
- Fields inside of structs
164+
- Fields inside of structs
165165

166166
::: moniker-end
167167

@@ -183,11 +183,12 @@ Data breakpoints don't work under the following conditions:
183183
- A process that is not being debugged writes to the memory location.
184184
- The memory location is shared between two or more processes.
185185
- The memory location is updated within the kernel. For example, if memory is passed to the 32-bit Windows `ReadFile` function, the memory will be updated from kernel mode, so the debugger won't break on the update.
186+
- Where the watch expression is larger than 4 bytes on 32-bit hardware and 8 bytes on 64-bit hardware. This is a limitation of the x86 architecture.
186187

187-
>[!NOTE]
188-
>- Data breakpoints depend on specific memory addresses. The address of a variable changes from one debugging session to the next, so data breakpoints are automatically disabled at the end of each debugging session.
188+
> [!NOTE]
189+
> - Data breakpoints depend on specific memory addresses. The address of a variable changes from one debugging session to the next, so data breakpoints are automatically disabled at the end of each debugging session.
189190
>
190-
>- If you set a data breakpoint on a local variable, the breakpoint remains enabled when the function ends, but the memory address is no longer applicable, so the behavior of the breakpoint is unpredictable. If you set a data breakpoint on a local variable, you should delete or disable the breakpoint before the function ends.
191+
> - If you set a data breakpoint on a local variable, the breakpoint remains enabled when the function ends, but the memory address is no longer applicable, so the behavior of the breakpoint is unpredictable. If you set a data breakpoint on a local variable, you should delete or disable the breakpoint before the function ends.
191192
192193
## <a name="BKMK_Specify_advanced_properties_of_a_breakpoint_"></a> Manage breakpoints in the Breakpoints window
193194

0 commit comments

Comments
 (0)