Questions tagged [diagnostics]
503 questions
0
votes
1 answer
Display ranked running tasks with one click
Very occasionally my computer goes through a period of a few minutes when a task "running in the background" causes disk activity to go up. I can still work on my computer but operations take longer to complete so I would rather this happened at a…

wurzel_gummidge
- 287
- 2
- 11
0
votes
0 answers
.Net error calling EXE from Process.start
I have an MVC app where I want to call an EXE from a controller action. I use the following code. this works fine on my local box as well as my test server. However on my production server I get
.NET Runtime version 4.0.30319.34209 - There was a…

Jman
- 31
- 4
0
votes
2 answers
Get SQL Server Connection info from app without debugging?
We are troubleshooting a SQL Server 2005 connection issue on a closed-source third-party ASP.NET application. The application is a .NET application and the developing company is using a custom formatted configuration file that stores the SQL Server…

Mitchel Sellers
- 62,228
- 14
- 110
- 173
0
votes
1 answer
Troubleshooting Grails merged configuration during application startup
Suppose I have a Grails application named myCoolApp.
Furthermore, suppose I have defined some basic properties in grails-app/conf/Config.groovy and grails-app/conf/DataSource.groovy under the test and production profiles.
Config.groovy is set to…

Jesús Zazueta
- 1,160
- 1
- 17
- 32
0
votes
1 answer
C: what should I use for trace/diagnostic messages in a library?
In .NET I would use System.Diagnostics.Trace...
What would I use in C or C++ ?
right now I have a macro defined:
diagnostics ON:
#define DIAG(A) { printf(A); }
debugging off:
#define DIAG(A) { if(FALSE) {}}
Is there a standard way?

Cheeso
- 189,189
- 101
- 473
- 713
0
votes
1 answer
Performance and diagnostics with "Cannot start service... A Windows Service must first be intalled (using installutil.exe)..."
Presently, I am attempting to profile a Windows service that I am working on using the new "Performance and Diagnostics" feature in Visual Studio 2013 (see…

user8128167
- 6,929
- 6
- 66
- 79
0
votes
1 answer
Printing a Text file programmatically
I'm tring to make a program that saves a textbox text to a text file and prints the text file.
I found this code:
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"TempDocument.txt");
psi.Verb =…

user2992413
- 77
- 1
- 8
0
votes
0 answers
CPU Usage test on Visual Studio 2013 Pro Update 2
I am trying to find out why my program is running slow. I've tried to use CPU sampling (from suggested by "Performance Wizard"), but it gave me only most often used functions but not the timings of which my app's part is the slowest. After some…

Masius
- 326
- 1
- 6
- 17
0
votes
0 answers
How to Enable diagnostic logs for Windows Azure VMRoles created using Azure Portal
I have created Virtual Machine directly on Azure Portal, Now i am trying to enable the Diagnostic logs for monitoring the CPU Usage. But i am not able to see the configure Tab in Cloud Service. Where as i observed that if i deploy the VM using…
0
votes
2 answers
Roslyn Rename variable const in Majusucle
Trying to convert that:
const string maj = "variable";
in
const string MAJ = "variable";
I'm using a Diagnostic with CodeFix.
I've already done the Diagnostic:
var localDeclarationConst = node as LocalDeclarationStatementSyntax;
if…

Maloz
- 165
- 1
- 2
- 17
0
votes
0 answers
No trace file for WCF client program
I have a self hosted WCF service and a WCF Client (Web reference) that is using it.
When i add the diagnostics and service model config for tracing to the server side, it works perfectly and i see everything.
…

user3243652
- 1
- 1
0
votes
1 answer
How to troubleshoot IE9 slow response?
I’m dealing with client’s problem that is evident in extremely slow response time only on IE browser (what’s new). Chrome and FF browser works fine.
This slow response is intermittent and is temporarily solved by cleaning cache (client reported that…

krul
- 2,211
- 4
- 30
- 49
0
votes
1 answer
Mimic the 'pause' function in debug using diagnostics
I have a site that, too often, takes a long time to respond. I have no idea why, and checking the code and running this on dev and staging servers only gets us so far. When I'm debugging, I have the ability to pause the process so I can see what…
user1017882
0
votes
5 answers
Check if machine is UP/ALIVE
I want to check if a remote machine is already up (after a reboot/reimage) using C#.
Right now, All I can think of is run a PING command and check if the machine will reply. Are there any elegant ways?
Thanks!
EDIT
One of my concern is that PING…

Ian
- 5,625
- 11
- 57
- 93
0
votes
2 answers
How to diagnose client-side WCF issues in Silverlight environment?
It seems that WCF diagnostics is not available in SL. Is it because of limited System.Diagnostics support or something else? Anyway, how do you track client-side WCF issues when server-side diagnostics is not enough?

UserControl
- 14,766
- 20
- 100
- 187