Skip to content

DOTNET_diagnosticports not mono-only #28024

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

Merged
merged 1 commit into from
Feb 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/core/tools/dotnet-environment-variables.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: .NET environment variables
description: Learn about the environment variables that you can use to configure the .NET SDK, .NET CLI, and .NET runtime.
ms.date: 11/10/2021
ms.date: 01/31/2022
---

# .NET environment variables
Expand Down Expand Up @@ -154,10 +154,13 @@ When <xref:System.Console.IsOutputRedirected?displayProperty=nameWithType> is `t
- `DOTNET_SYSTEM_DIAGNOSTICS_DEFAULTACTIVITYIDFORMATISHIERARCHIAL`: When `1` or `true`, the default _Activity Id_ format is hierarchical.
- `DOTNET_SYSTEM_RUNTIME_CACHING_TRACING`: When running as Debug, tracing can be enabled when this is `true`.

### `DOTNET_DiagnosticPorts`

Configures .NET processes to connect to [dotnet monitor](https://github.com/dotnet/dotnet-monitor/blob/main/documentation/configuration.md#connection-mode) when dotnet monitor is in Listen mode.

### Mono-specific variables

- `DOTNET_DefaultDiagnosticPortSuspend`: Configures the runtime to pause during startup and wait for the _Diagnostics IPC ResumeStartup_ command from the specified diagnostic port.
- `DOTNET_DiagnosticPorts`: A value that represents the Mono diagnostic ports.
- `DOTNET_EnableDiagnostics`: When set to `1`, enables Mono diagnostics.
- `DOTNET_EnableEventPipe`: When set to `1`, enables the Mono event pipe.
- `DOTNET_EventPipeOutputPath`: The output path for the Mono event pipe.
Expand Down