-
Notifications
You must be signed in to change notification settings - Fork 357
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
Enhancements to NETCore.Client and dotnet-dump around ports and logging #3877
base: main
Are you sure you want to change the base?
Conversation
hoyosjs
commented
May 15, 2023
- Add support for collecting dumps of apps using alternative ports.
- Update IPC spec for all generate dump commands.
- Add option for collecting verbose logging from dotnet-dump.
- Pipe logging capability to a file through dotnet-dump.
@@ -149,6 +153,10 @@ NotSupportedException or | |||
DiagnosticsClientException) | |||
{ | |||
console.Error.WriteLine($"{ex.Message}"); | |||
if (config.LogLevel == LogLevelOption.None) | |||
{ | |||
console.Error.WriteLine($"Consider rerunning the command with diagnostic output enabled."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be a dash in "re-running".
@@ -49,31 +63,69 @@ public static Task<int> Main(string[] args) | |||
aliases: new[] { "-n", "--name" }, | |||
description: "The name of the process to collect a memory dump.") | |||
{ | |||
Argument = new Argument<string>(name: "name") | |||
Name = nameof(DumpCollectionConfig.ProcessName), | |||
Argument = new Argument<string>(name: "ProcessName") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are not consistent with using nameof() for the Argument name
}; | ||
|
||
private static Option CrashReportOption() => | ||
new( | ||
alias: "--crashreport", | ||
description: "Enable crash report generation.") | ||
{ | ||
Name = nameof(DumpCollectionConfig.GenerateCrashReport), | ||
Argument = new Argument<bool>(name: "crashreport") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not consistent with using nameof(DumpCollectionConfig.GenerateCrashReport) here, but it is ok if it affects the --help text.