Disable Visual Studio Diagnostic Tools traces for a specific method

608 views Asked by At

I'm wondering if there is a way to disable VS 2019 diagnostic tools traces for a specific method (using a DataAnnotation maybe ?).

I've got a method which is being called in a loop and which makes a database calls each time, ence resulting in a lot of traces like this : Execute NonQuery "xxx.xxxxxxx"...

This is also slowing down my VS a lot. Any idea?

1

There are 1 answers

2
Housheng-MSFT On

Turn off the debugging of vs2019.

Cancellation steps:

Debug -> Options -> Debugging -> General.

enter image description here

In this way, you can turn off debugging.

Hope it can help you.