Questions tagged [diagnostics]

438 questions
346
votes
10 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
  • 17,127
  • 14
  • 67
  • 84
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
  • 7,498
  • 8
  • 31
  • 52
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,261,211
  • 792
  • 8,724
  • 8,929
70
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
  • 31,336
  • 15
  • 76
  • 107
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
  • 21,270
  • 21
  • 97
  • 131
57
votes
5 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
  • 30,777
  • 53
  • 137
  • 211
41
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,609
  • 3
  • 33
  • 44
35
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
  • 38,854
  • 23
  • 76
  • 101
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
  • 40,822
  • 34
  • 113
  • 133
30
votes
4 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
  • 161,833
  • 52
  • 243
  • 303
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,394
  • 12
  • 65
  • 89
26
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
  • 28,678
  • 19
  • 120
  • 206
23
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
  • 9,871
  • 11
  • 50
  • 89
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,259
  • 1
  • 26
  • 35
22
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,813
  • 1
  • 15
  • 31
1
2 3
29 30