Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running dotnet-trace with dotnet test as command hangs waiting for ResumeStartup #5649

@Cjewett

Description

@Cjewett

When running a command such as dotnet-trace collect --show-child-io -- dotnet test --no-restore --no-build in a directory with a test project the following text is output and things seem to just hang:

Test run for C:\Path\To\TestProject.dll (.NETCoreApp,Version=v8.0)
The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port.
DOTNET_DiagnosticPorts="dotnet-trace-18712-20251203_040310.socket,suspend,connect"
DOTNET_DefaultDiagnosticPortSuspend=0

I don't see any output stating the test project has started. Looking at the trace after terminating the process (CTRL+C) seems to output nothing meaningful and things like trx files, code coverage, file logs, etc. don't seem to be getting generated suggesting the dotnet test never executed.

Are there any docs outlining how to use this in the dotnet test scenario? Is there a task we're supposed to perform manually to force it to continue based on the log messages output above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions