Skip to content

Conversation

@guilhermedcampos
Copy link

This pull request fixes #239770 where updating a breakpoint's condition would cause previously set properties like logMessage to be lost.

The issue was that updateBreakpoints replaced the entire breakpoint state, causing properties like logMessage to be lost when updating a breakpoint's expression, for instance. My code suggestion altered updateBreakpoints to ensure properties are only overwritten if explicitly provided, by merging bpData with existing values.

I added a test to verify that updates correctly retain existing properties. The test sets an initial logMessage, sets a condition, modifies the condition, and verifies that logMessage remains unchanged.

Fixes microsoft#239770 where updating a breakpoint's condition would cause
previously set properties like logMessage to be lost.
Modified updateBreakpoints to explicitly preserve existing
values when they are not provided in the update data.

Add test that verifies updateBreakpoints preserves
properties correctly across updates.
@guilhermedcampos
Copy link
Author

@microsoft-github-policy-service agree

@guilhermedcampos
Copy link
Author

@roblourens Hello! Have you had any time to take a look? Let me know if you need any changes, reviews, or a rebase/merge. Thanks.

@roblourens roblourens added this to the August 2025 milestone Jul 31, 2025
@roblourens roblourens modified the milestones: August 2025, September 2025 Sep 5, 2025
@roblourens roblourens modified the milestones: October 2025, November 2025 Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alter an expression breakpoint deletes log message

2 participants