Questions tagged [diagnostics]
503 questions
383
votes
11 answers
IIS: Where can I find the IIS logs?
I'm trying to set up an application from a third party, which requires a supporting website hosted in my local IIS. I've created a website exactly as explained in their install guide, but am having some problems, and would like to see what the IIS…

Kjartan
- 18,591
- 15
- 71
- 96
101
votes
2 answers
Apache not starting on MAMP Pro
Apache wont start and it throws an error:
OR
Apache couldn't be started. Please check the log file for more information.
dyld: Symbol not found: _iconv
Referenced from: /usr/lib/libmecabra.dylib
Expected in:…

Toby Mellor
- 8,093
- 8
- 34
- 58
74
votes
1 answer
How can I make my code diagnostic syntax node action work on closed files?
I'm building a set of code diagnostics using Roslyn (in VS2015 Preview). Ideally, I'd like any errors they produce to act as persistent errors, just as if I were violating a normal language rule.
There are a bunch of options, but I'm having a hard…

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194
71
votes
5 answers
log4net versus TraceSource
In this thread many people have indicated that they use log4net. I am a fan of TraceSources and would like to know why log4net is used.
Here is why I like trace sources:
Pluggable listeners - XML, TextFile, Console, EventLog, roll your…

Paul Stovell
- 32,377
- 16
- 80
- 108
64
votes
11 answers
What disadvantages are there to the
I started using a diagnostic css stylesheet, e.g.
http://snipplr.com/view/6770/css-diagnostics--highlight-deprecated-html-with-css--more/
One of the suggested rules highlights input tags with the type submit, with the recommendation to use

Kzqai
- 22,588
- 25
- 105
- 137
63
votes
6 answers
How to get the size of available system memory?
Is it possible to get the size of system available memory in C#.NET? if yes how?

Louis Rhys
- 34,517
- 56
- 153
- 221
50
votes
7 answers
How can I list all processes running in Windows?
I would like to find a way to loop through all the active processes and do diagnostics checks on them (mem usage, cpu time etc) kinda similar to the task manager.
The problem is broken down into two parts:
Finding all the processes
Finding…

Statement
- 3,888
- 3
- 36
- 45
39
votes
5 answers
How do I find out which JAXP implementation is in use and where it was loaded from?
I would like to provide diagnostic information about what JAXP implementation is in use, and which JAR file it was loaded from.
One way to achieve this is to create in instance of, for example, a DocumentBuilderFactory, and then inspect the…

Daniel Fortunov
- 43,309
- 26
- 81
- 106
31
votes
5 answers
How to translate MS Windows OS version numbers into product names in .NET?
How to translate MS Windows OS version numbers into product names?
For example, in .NET the following two properties could be used to work out that the product is MS Windows Vista Ultimate Edition :
Environment.OSVersion.Platform returns…

Thomas Bratt
- 48,038
- 36
- 121
- 139
30
votes
5 answers
How to read command line arguments of another process in C#?
How can I obtain the command line arguments of another process?
Using static functions of the System.Diagnostics.Process class I can obtain a list of running processes, e.g. by name:
Process[] processList =…

Dirk Vollmar
- 172,527
- 53
- 255
- 316
28
votes
1 answer
External code in VS2015 Profiler
VS2015 includes some new tools for diagnosing WPF applications performance. My solution contains more than one project (e.g. View and ViewModel projects). When I start my View project in diagnose mode and measure CPU usage, a considerable portion of…

dotNET
- 33,414
- 24
- 162
- 251
28
votes
3 answers
how to use #pragma clang diagnostics
I know that #pragma clang diagnostics can be used for ignoring some warnings generated by clang. But I don't know how to use this correctly.
For example, for an unused variable warning we can avoid warning by
#pragma clang diagnostic push
#pragma…

Johnykutty
- 12,091
- 13
- 59
- 100
26
votes
3 answers
What's the right statistic for iOS Memory footprint. Live Bytes? Real Memory? Other?
I'm definitely confused on this point.
I have an iPad application that shows 'Live Bytes' usage of 6-12mb in the object allocation instrument. If I pull up the memory monitor or activity monitor, the 'Real Memory' Column consistently climbs to…

Bob Spryn
- 17,742
- 12
- 68
- 91
23
votes
2 answers
VS 2015 diagnostic tools failed unexpectedly when running multiple instances of visual studio
VS 2015
I've checked these questions before:
1
2
When debugging two or more solutions only first one will run Diagnostic Tools.
Other ones will throw:
Is there a way to run diagnostic tools in each instance of visual studio while debugging?

Claudius
- 1,883
- 2
- 21
- 34
22
votes
4 answers
ASP.NET MVC why does my app keep restarting?
I have an ASP.NET MVC website that gets about 6500 hits a day, on a shared hosting platform at Server Intellect. I keep seeing app restarts in the logs and I cannot figure out why.
I've read Scott Gu's article here:…

Dave Thieben
- 5,388
- 2
- 28
- 38