Skip to content

Add additional log messages for dotnet trace collect --dsrouter #5435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonathanpeppers opened this issue Apr 15, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@jonathanpeppers
Copy link
Member

#5241 added a new --dsrouter switch to dotnet-trace.

This simplifies the workflow for mobile, but some of the log messages like this are not present when using it this way:

How to connect current dotnet-dsrouter pid=1234 with android emulator and diagnostics tooling.
Start an application on android emulator with ONE of the following environment variables set:
[Default Tracing]
DOTNET_DiagnosticPorts=10.0.2.2:9000,nosuspend,connect
[Startup Tracing]
DOTNET_DiagnosticPorts=10.0.2.2:9000,suspend,connect
Run diagnotic tool connecting application on android emulator through dotnet-dsrouter pid=1234:
dotnet-trace collect -p 1234
See https://learn.microsoft.com/dotnet/core/diagnostics/dotnet-dsrouter for additional details and examples.

The log messages about "starting an application" and $DOTNET_DiagnosticPorts would be useful for developers.

@jonathanpeppers jonathanpeppers added the enhancement New feature or request label Apr 15, 2025
@steveisok
Copy link
Member

/cc @lateralusX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants