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
This PR aim to simplify the process of collecting traces for maui mobile
scenarios and reduce the number of steps for simple cases (when a
dsrouter isn't already running).
It adds a --dsrouter option to collect that takes one of the following
values: android, android-emu, ios, ios-sim
This doesn't make dotnet-trace depends on dotnet-dsrouter, the option
checks for the existence of dsrotuer in the same path as trace, and
invokes it.
Console.WriteLine("Invalid value for --dsrouter. Valid values are 'ios', 'ios-sim', 'android' and 'android-emu'.");
127
+
returnfalse;
128
+
}
129
+
if((processId=LaunchDSRouterProcess(dsrouter))<0)
130
+
{
131
+
if(processId==-2)
132
+
{
133
+
Console.WriteLine($"Failed to launch dsrouter: {dsrouter}. Make sure that dotnet-dsrouter is not already running. You can connect to an already running dsrouter with -p.");
134
+
}
135
+
else
136
+
{
137
+
Console.WriteLine($"Failed to launch dsrouter: {dsrouter}. Please make sure that dotnet-dsrouter is installed and available in the same directory as dotnet-trace.");
138
+
Console.WriteLine("You can install dotnet-dsrouter by running 'dotnet tool install --global dotnet-dsrouter'. More info at https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dsrouter");
Console.WriteLine($"An error occurred trying to start process '{_childProc.StartInfo.FileName}' with working directory '{System.IO.Directory.GetCurrentDirectory()}'");
0 commit comments