You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set a breakpoint in a test, press Debug Test (the CodeLens above the method, or the Debug profile in the Testing view) against FluentValidation, and nothing happens: no stop, no hit breakpoint, no reported outcome. The run ends without the debuggee ever reaching user code.
Reported against FluentValidation.Tests.AbstractValidatorTester.When_the_Validators_pass_then_the_validatorRunner_should_return_true, breakpoint on the validator.RuleFor(...) line.
filterClause escapes the parentheses, so --filtermatches no test
Under VSTEST_HOST_DEBUG=1 the test host still announces its pid and waits, so SharpLsp attaches as designed ([DEBUG-FEATURES-TESTS]) — and then the host runs zero tests and exits. From the user's side that is indistinguishable from "the debugger did nothing": the breakpoint is never reached because the test never runs.
Reproduction
Open src/fixtures/real-world/fluentvalidation.
Put a breakpoint inside any [Fact] in AbstractValidatorTester.
Press Debug Test.
No stop; the session ends with no outcome reported.
Expected
The test host runs the selected test under the attached debugger and stops on the user's breakpoint.
What still needs confirming
This issue is filed on the user-reported symptom plus the traced filter defect. Not yet verified from a captured session:
whether the sharplsp-coreclr attach actually completed (the SharpLsp Test Debug terminal + extension log would say), or whether the attach itself refused
whether the breakpoint bound (verified) before the host exited
If #232 is fixed and Debug Test still does nothing, this issue stays open on its own merits — so it is tracked separately rather than folded into #232.
Summary
Set a breakpoint in a test, press Debug Test (the CodeLens above the method, or the Debug profile in the Testing view) against FluentValidation, and nothing happens: no stop, no hit breakpoint, no reported outcome. The run ends without the debuggee ever reaching user code.
Reported against
FluentValidation.Tests.AbstractValidatorTester.When_the_Validators_pass_then_the_validatorRunner_should_return_true, breakpoint on thevalidator.RuleFor(...)line.Almost certainly the same root cause as #232
A debug run reuses the ordinary run's selection and filter:
SharpLspTestController.debugTests→collectTests(request)→filterIdsFor(request, tests)(src/editors/vscode/src/testing.ts:506-529)…When_the_Validators_pass_then_the_validatorRunner_should_return_true (2bd9e5a56e8ea7c7114cb93b1c19bd50a55b7bf4)— see Test Explorer: every run reports "No result reported" — discovered ids carry xUnit's unique-ID suffix #232 for the on-disk evidencefilterClauseescapes the parentheses, so--filtermatches no testUnder
VSTEST_HOST_DEBUG=1the test host still announces its pid and waits, so SharpLsp attaches as designed ([DEBUG-FEATURES-TESTS]) — and then the host runs zero tests and exits. From the user's side that is indistinguishable from "the debugger did nothing": the breakpoint is never reached because the test never runs.Reproduction
src/fixtures/real-world/fluentvalidation.[Fact]inAbstractValidatorTester.Expected
The test host runs the selected test under the attached debugger and stops on the user's breakpoint.
What still needs confirming
This issue is filed on the user-reported symptom plus the traced filter defect. Not yet verified from a captured session:
sharplsp-coreclrattach actually completed (theSharpLsp Test Debugterminal + extension log would say), or whether the attach itself refusedverified) before the host exitedIf #232 is fixed and Debug Test still does nothing, this issue stays open on its own merits — so it is tracked separately rather than folded into #232.
Environment
fixloading<TargetFrameworks>net8.0;net9.0</TargetFrameworks>, xunit 2.2.0, xunit.runner.visualstudio 2.2.0