Skip to content

Fix catch2 error line reporting - #6672

Merged
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:correct-catch-lines
Nov 11, 2026
Merged

JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:correct-catch-lines

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

📖 Description

Disable Edit & Continue functionality for CLI unit test project by explicitly setting the debug type. This fixes the incorrect lines reported by catch2 failures, as they are dependent on the __LINE__ macro which is not reliable within functions with Edit & Continue.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS
JohnMcPMS requested a review from a team as a code owner November 11, 2026 02:20
@JohnMcPMS JohnMcPMS changed the title fix catch error lines Fix catch2 error line reporting Nov 11, 2026

@ranm-msft ranm-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test-project /Zi override removes Edit and Continue without changing the shipped binaries; x86/x64 builds and tests are green.

@JohnMcPMS
JohnMcPMS merged commit d69f66e into microsoft:master Nov 11, 2026
9 checks passed
@JohnMcPMS
JohnMcPMS deleted the correct-catch-lines branch November 11, 2026 18:23
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.

3 participants