dotnet / dotnet/diagnostics

dotnet-dsrouter and dotnet-gcdump doc needed when default port is occupied

Open
#4,524 8 comments 0 reactions 1 assignee Assigned to @lateralusX View on GitHub
documentation
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 5h
Merged PRs (30d)
35

Description

*Edit: This doc request is for .net 8+, where the runtime and diagnostics added dotnet-gcdump support for mobile devices.

dotnet-dsrouter add some useful command to make mobile device interaction more conveniently, such as the `dotnet-dsrouter android` command.

The instructions provided by current document works fine when the default ip address is free, (checking the source code, it is 127.0.0.1:9000 by default), but there will be cases that port 9000 is occupied by other process, such as firm-wise internal security application, which one is not able or hard to alter.

Under such scenario, when working with dotnet-gcdump, the dotnet-dsrouter setup instructions provided with dotnet-dsrouter, dotnet-gcdump are not working.

By browsing the source code of dotnet-dsrouter and manual testing, the actually working dotnet-dsrouter config (manually checked with android device) is `dotnet-dsrouter server-server -tcps 127.0.0.1:{port} -fp Android`, with no ipcs option. If ipcs option added, dotnet-gcdump will not be able to collect the gcdump from mobile device, but only the dotnet-dsrouter's.

I only checked the work-around with android device though.

Please verify the work-around and consider add documentation for such scenario.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.