Questions tagged [diagnostics]

503 questions
4
votes
1 answer

How do we suppress a diagnostic rule for a specific file in editorconfig Visual Studio

I am trying to suppress a file in editor config on diagnostic scan. Below is my code, Can anyone help . [*.File.cs] generated_code = true
4
votes
4 answers

Does Visual Studio continuously compile?

When working in VS, the error messages in the bottom panel are compiler errors and warnings, right? Does this mean the app is being compiled all the time? I would expect those to appear only when trying to run the app. This is probably a silly…
Leberian
  • 41
  • 1
4
votes
4 answers

WCF: How to diagnose faulted channels?

I'm working on shipping in a change for my lab that will hopefully help diagnose some weird channel-faulting weirdness we're seeing. There's a test application that uses DuplexChannelFactory to connect to a couple windows services, and for some…
bwerks
  • 8,651
  • 14
  • 68
  • 100
4
votes
2 answers

I am a process, how much CPU do I consume?

Is there a way (.net 2.0) for a process to know EXACT amount of processor usage it consumes (something like it would be seen in processexplorer properties/performance graph). Please, don't go much further then semi-esoteric questions (p-Invoke…
Daniel Mošmondor
  • 19,718
  • 12
  • 58
  • 99
4
votes
1 answer

How to find All Graphic Cards?

I used this code for finding graphic cards: ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration"); string graphicsCard = ""; foreach (ManagementObject mo in searcher.Get()) { …
Mohammad
  • 528
  • 4
  • 21
4
votes
6 answers

Meaningful diagnostic messages

Looking at several posts, I get a feel that many of the questions arise because compilers/implemenetation do not emit a very meaningful message many times (but not always). This is especially true in the case of templates where error messages could…
Chubsdad
  • 24,777
  • 4
  • 73
  • 129
4
votes
3 answers

Why positive response is always plus 40 and negative response is 7F in UDS,KWP diagnostic protocol in automotive?

i want logical reason why positive response is +40 and negative response is 7F in UDS i tried some diagnostic services but getting always +40 and 7F but not getting why always it is increment by +40
Sachin Bharambe
  • 263
  • 3
  • 4
  • 16
4
votes
1 answer

How to enable memory usage diagnostic for locally published site in vs2015

When I debug my WebApp project in VS2015 the memory diagnostic view is unavailable even though the cpu view is working. The project is built and published in to a separate directory over a vanilla Sitecore7 CMS install. If I just run the app the…
gingerbreadboy
  • 7,386
  • 5
  • 36
  • 62
4
votes
2 answers

Is it possible to read manufacturer specific codes with ELM327

I plan on creating a SW which interacts with the CAN bus (for Cars) over OBDII protocols. The SW will be for PC mainly, and perhaps Android. However, it is no use if I cannot adapt it to read more codes than what is legislated and "public". Is it…
obd_dude
  • 49
  • 1
4
votes
2 answers

How to get process "type" (App, Background Process, or Windows Process)

I am trying to get a list of all processes which are of the type "app" (as opposed to "Background Process" or "Windows Process"). Unfortunately, although I know that... var processList = Process.GetProcesses(); will get me a list of all processes…
user2328093
  • 99
  • 3
  • 9
4
votes
2 answers

FXML / FXMLLoader error diagnostic tool(s) sought

overview Hi, here's an outline use-case. I have a seemingly valid FXML file developed in JavaFX Scene Builder. It is by now a non-trivial chunk of XML and there are runtime load errors somewhere in the FXML file. Scene Builder works fine with the…
will
  • 4,799
  • 8
  • 54
  • 90
4
votes
5 answers

Android Diagnostic Mode - How to Enable it?

I would Like to enable Diagnostic (DIAG) Mode on Android. I have the following questions about the same. How is DIAG mode helpful ? Is Rooting the Device necessary to enable DIAG Mode ? How to verify if DIAG mode is enabled ? Is it reversible ? Can…
Saurabh Meshram
  • 8,106
  • 3
  • 23
  • 32
4
votes
1 answer

How do I enable WebAPI response tracing?

I have a service built on WebAPI 4.0 but we have an issue with some clients receiving JSON instead of XML, how can I see what's going on inside the WebAPI on the live service?
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
4
votes
1 answer

ASP.NET MVC 4 is slow when rendering a view

We have a quite big ASP.NET MVC site, which takes 6 seconds to display a page. I used Glimpse and MiniProfier, and both told me that the rendering of the view is the culprit (takes 5.9 secs). The control and the view both are called "List". I…
Aref Karimi
  • 1,822
  • 4
  • 27
  • 46
4
votes
1 answer

Is there a Clang diagnostic that is only a note?

Clang has several kinds of diagnostics, of which the three main kinds are errors, warnings, and notes. Notes usually accompany certain warnings and errors, such as duplicate definitions: error: conflicting types for 'square' static double…
Peter Hosey
  • 95,783
  • 15
  • 211
  • 370