Skip to content
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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hoyosjs
Copy link
Member

@hoyosjs 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.

@hoyosjs hoyosjs requested a review from mikem8361 May 15, 2023 21:22
@@ -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.");
Copy link
Member

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")
Copy link
Member

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")
Copy link
Member

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.

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

Successfully merging this pull request may close these issues.

2 participants