Skip to content

Commit

Permalink
Add warning about environment variables (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine authored May 13, 2024
1 parent bbb6aea commit 7aaf8e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/sources/configure-client/language-sdks/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,16 @@ CORECLR_PROFILER_PATH=Pyroscope.Profiler.Native.so
LD_PRELOAD=Pyroscope.Linux.ApiWrapper.x64.so
```

 
{{< admonition type="note" >}}
Since .NET version 8 the environment variable `DOTNET_EnableDiagnostics=0` (or its legacy equivalent `COMPlus_EnableDiagnostics=0`) will also disable the profiler. In order to get the previous behaviour (allowing profiling, but switch off IPC and Debugging) the following environment variables should be set instead:

```shell
DOTNET_EnableDiagnostics=1
DOTNET_EnableDiagnostics_IPC=0
DOTNET_EnableDiagnostics_Debugger=0
DOTNET_EnableDiagnostics_Profiler=1
```
{{< /admonition >}}

### .NET Profiler API

Expand Down

0 comments on commit 7aaf8e1

Please sign in to comment.