michasaucer
michasaucer

Reputation: 5236

Turning off debugger in release mode

I have Build set to Release mode.

enter image description here

I'm running my .NET Core 3.1 Console App with Benchmark DotNet. But it tells me, that

Summary -> Benchmark was executed with attached debugger

How to turn off debugger completely in Release build mode?

Upvotes: 3

Views: 2288

Answers (2)

Adam Sitnik
Adam Sitnik

Reputation: 1364

You can just run it from command line:

dotnet run -c Release

Upvotes: 2

canton7
canton7

Reputation: 42320

Debug -> Start Without Debugging (Ctrl+F5)

Screenshot of "Start Without Debugging"

Upvotes: 8

Related Questions