Questions tagged [diagnostics]
503 questions
19
votes
9 answers
Visual Studio 2015 diagnostic tools no longer working
I have Visual Studio 2015 Community Edition Update 3 running on Windows 7 SP1 64 bit, which I use to develop C# applications.
I love the diagnostic tools during debugging to spot performance problems early on. However, they stopped working for me…

tdenniston
- 3,389
- 2
- 21
- 29
19
votes
7 answers
Process Memory Size - Different Counters
I'm trying to find out how much memory my own .Net server process is using (for monitoring and logging purposes).
I'm using:
Process.GetCurrentProcess().PrivateMemorySize64
However, the Process object has several different properties that let me…

Daniel Magliola
- 30,898
- 61
- 164
- 243
17
votes
2 answers
VS2022: "Diagnostic Tools" window no longer appears during debugging, can't bring it back
I must have fat-fingered something to turn it off, but when I try to run any c# project (.net 6 windows wpf, or even just a commandline application) in debug mode, I no longer see the Diagnostic Tools window. This is the thing that displays a…

Angelo
- 2,936
- 5
- 29
- 44
15
votes
5 answers
Diagnosing the .NET Legacy
Assume you are taking over a legacy .NET app. written in C#
What are the top 5 diagnostic measures, profiling or otherwise that you would employ to assess the health of the application?
I am not just looking at the "WHAT" part of diagnosis but also…

Shankar R10N
- 4,926
- 1
- 21
- 24
14
votes
1 answer
What's the difference between System.Diagnostics.Trace, System.Diagnostics.Debug and System.Console?
As far as I understand, System.Console will write to STDOUT by default, but what about System.Diagnostics.Trace and System.Diagnostics.Debug? What are the default behaviors, and are they configurable in any way?
It also seems that different people…

Jakub Arnold
- 85,596
- 89
- 230
- 327
13
votes
1 answer
Can't profile in visual studio
When I try to profile in VS2017 15.3 I get the following message on screen:
"Microsoft Visual Studio encountered an error during your diagnostics session"
In the Diagnostics Hub below the following message appears:
"Failed to start trace session…

Eric. J. Lara
- 203
- 2
- 8
12
votes
2 answers
Overriding System.Diagnostics.Trace.WriteLine to log to a file
This may be more of an OOP concept question, but here's what I'd like to do.
I have an application that outputs debug information using System.Diagnostics.Trace.WriteLine so it can be viewed with DebugView.
I'd like to override/extend (not sure of…

Ben Brandt
- 2,851
- 5
- 34
- 45
12
votes
2 answers
Is it possible to get parameters' values for each frame in call stack in .NET
I'm talking about managed .NET code.
If we run any program and attach VS to it we can see parameters' values for each method in call stack.
I'd like to create a logging solution which will log all parameters' values for each method in call stack.…

Shrike
- 9,218
- 7
- 68
- 105
12
votes
2 answers
How to obtain System.Web.Http.Tracing.dll?
I read about Web API having its own TraceWriter implementation with 2012.2, for example here, among other sources.
I am now using VS2013 with .NET 4.5.1 and the EnableSystemDiagnosticsTracing is nowhere to be found. It's meant to be defined in the…

Vroomfundel
- 730
- 7
- 24
12
votes
2 answers
Getting from ProcessThread to a managed thread
Periodically we get a hang on shut down of a Windows service in a production environment that we just cannot reproduce. It can be months before it happens again.
I'm putting in some diagnostics to try and help with the issue, one thing I'm looking…

Bigtoe
- 3,372
- 1
- 31
- 47
12
votes
2 answers
WCF logging, set max file size?
Im using Microsoft Service Configuration Editor to setup diagnostics(WCF logging) and I can´t find any way to set the max file size?
I have found the MaxSizeOfMessageToLog but that do nothing about the file size?
Edit 1: According to this :…

Banshee
- 15,376
- 38
- 128
- 219
11
votes
4 answers
Measuring performance of ASP.NET MVC 3
I've built a JSON service in ASP.NET MVC 3 and I want to be able to measure the execution time of the actions in my application (I want to it to automatically log slow actions).
Therefor this looked great;…

ullmark
- 2,469
- 1
- 19
- 28
11
votes
2 answers
How to identify the caller of a Stored Procedure from within the Sproc
I have a deprecated stored procedure which should no longer be called from code, but there is some system which is still calling it. This is a production server so I have very limited indirect access to it for performing diagnostics.
Is there any…

Chris Ballance
- 33,810
- 26
- 104
- 151
10
votes
1 answer
CDD file vs ODX file in vehicle diagnostic
Whats is the difference between .CDD and .ODX file in vehicle diagnostic and what .ODX and .CDD file contains?

Sachin Bharambe
- 263
- 3
- 4
- 16
10
votes
2 answers
Web page with all GCC error and warning messages?
I need a link to a webpage that
lists all the error messages and warnings
GCC can show; the actual messages, not descriptions.
It would be preferable if the list is
in the order of most frequently encountered
diagnostics.

handsomehermit
- 101
- 1
- 3