Rider Debug stuck on pending

I have some tests within my application using .net core 3.1, and I can run, them without any problems.

However, when trying to debug the tests rider gets stuck endlessly pending in the Unit Tests tab.

What can I do to fix this and properly debug my tests?

here is a log of the run, you can see the big gap between the start of the run and aborting the run:

12:31:16.441 |T| Launch: 0e14b2cc-b83c-40d9-a0c8-004a3e632692 >> UnityTaskRunnerHostController.AfterLaunchStarted
12:31:16.442 |T| Launch: 0e14b2cc-b83c-40d9-a0c8-004a3e632692 << UnityTaskRunnerHostController.AfterLaunchStarted
12:31:16.442 |I| BuildStage started
12:31:16.442 |I| Build policy: Automatic
12:31:18.442 |I| 0 projects built
12:31:18.442 |V|
12:31:18.443 |I| BuildStage completed
12:31:18.443 |I| RefreshProjectPropertiesStage started
12:31:18.443 |I| RefreshProjectPropertiesStage completed
12:31:18.443 |I| DiscoveryStage started
12:31:18.444 |I| Test exploration required for 0 projects
12:31:18.444 |V|
12:31:18.444 |I| DiscoveryStage completed
12:31:18.444 |I| BuildPipelineStage started
12:31:18.444 |I| BuildPipelineStage completed
12:31:18.444 |I| ApplyRulesStage started
12:31:18.448 |V| Running elements from criterion: {TestAncestorCriterion: NUnit3x::256B5731-C29D-448E-BD24-52463EB2133F::.NETCoreApp,Version=v3.1::Tests.SecureCookieTests.VoluTest1}
12:31:18.448 |I| Got 1 elements (1 explicit) to run
12:31:18.449 |V| Marking 1 elements as Pending
12:31:18.450 |V| Marking elements as Pending completed
12:31:18.451 |V| Distributing 1 elements into runs
12:31:18.453 |V| Distributing elements completed
12:31:18.454 |I| Created 1 unit-test runs
12:31:18.454 |I| ApplyRulesStage completed
12:31:18.454 |I| RunTestsStage started
12:31:18.455 |I| Running up to 1 unit-test runs in parallel
12:31:18.455 |I| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 - Starting
12:31:18.456 |V| Provider: NUnit 3x
Target Framework: .NETCoreApp,Version=v3.1
Strategy: NUnitTestRunnerRunStrategy
Runtime Environment: TestRunnerRuntimeEnvironment
Project: CoreUnitTests
TargetPlatform: X64
TargetFrameworkId: .NETCoreApp,Version=v3.1
RunAsTargetFrameworkId: .NETCoreApp,Version=v3.1
IsUnmanaged: False
12:31:18.457 |T| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 >> UnityTaskRunnerHostController.PrepareForRun
12:31:18.457 |T| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 << UnityTaskRunnerHostController.PrepareForRun
12:31:20.999 |I| Starting process: exec --runtimeConfig /Users/benshmuely/Github/WhiteSource/BLAST-Remediation-Core-CSharp/CoreUnitTests/bin/Debug/netcoreapp3.1/CoreUnitTests.runtimeconfig.json --depsfile /Users/benshmuely/Github/WhiteSource/BLAST-Remediation-Core-CSharp/CoreUnitTests/bin/Debug/netcoreapp3.1/CoreUnitTests.deps.json --additional-deps /Applications/Rider.app/Contents/lib/ReSharperHost/TestRunner/netcoreapp2.0/ReSharperTestRunner64.deps.json --additionalprobingpath /Applications/Rider.app/Contents/lib/ReSharperHost/TestRunner/netcoreapp2.0 /Applications/Rider.app/Contents/lib/ReSharperHost/TestRunner/netcoreapp2.0/ReSharperTestRunner64.dll -p 64930 -r 3e3db3e4-9f67-40a1-b84d-058073d48c86 --parentProcessId 1261
12:31:21.000 |I| Started process with pid 5516
12:34:08.849 |I| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 - is being cancelled
12:34:08.997 |I| Process exec:5516 is being aborted
12:34:08.998 |I| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 - is being aborted
12:34:09.159 |I| Process exec:5516 has exited
12:34:09.185 |V| Process was not started by this object, so requested information cannot be determined.

--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Process was not started by this object, so requested information cannot be determined.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = System.Diagnostics.Process
StackTraceString = “
at System.Diagnostics.Process.EnsureState(State state)
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcessFromRunningProcess.WaitForExitAndSignal()


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Process was not started by this object, so requested information cannot be determined.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
at JetBrains.Util.ILoggerEx.Verbose(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
at JetBrains.Util.ILoggerEx.LogExceptionSilently(ILogger thіs, Exception ex)
at JetBrains.ReSharper.UnitTestFramework.Processes.PreparedProcessFromRunningProcess.WaitForExitAndSignal()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)


12:34:09.188 |T| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 >> UnityTaskRunnerHostController.CleanupAfterRun
12:34:09.188 |T| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 << UnityTaskRunnerHostController.CleanupAfterRun
12:34:09.797 |I| Run: 3e3db3e4-9f67-40a1-b84d-058073d48c86 - Aborted
12:34:09.798 |I| RunTestsStage completed
12:34:09.798 |I| FinishLaunchStage started
12:34:09.799 |I| Finishing launch
12:34:09.803 |I| Launch is finished
12:34:09.803 |I| FinishLaunchStage completed
12:34:09.803 |T| Launch: 0e14b2cc-b83c-40d9-a0c8-004a3e632692 >> UnityTaskRunnerHostController.BeforeLaunchFinished
12:34:09.804 |T| Launch: 0e14b2cc-b83c-40d9-a0c8-004a3e632692 << UnityTaskRunnerHostController.BeforeLaunchFinished
1
1 comment

Hello Ben,

Could you please make sure you are running the latest Rider version, reproduce the issue, collect the full log bundle and attach it with a new issue on our tracker, so we could take a closer look at it? Thank you in advance!

0

Please sign in to leave a comment.