tracing

WCF Tracing From Code

I have all of my connections set up from my code, as opposed to using my config file. How does one go about setting up WCF Tracing on a connection built from code. I tried adding the tracing to the config file, as explained here, but it produces no logs whatsoever. I need to know either how to make it work from the config file for conne...

How to inspect an element in c# like firebug does?

Is there a way to inspect/spy elements in a web browser like firebug does when we move the mouse over the webpage? How to to it in c#?? EDIT: Actually I just want to get the HTML source code from the tagged element. Best regards. ...

is there and SPY++ for viewing .NET Framework messages only?

Hi, is there any good program for viewing functions / messages that are being executed on the .net framework in the background? i'm looking for something similar to what spy++ is doing, just for .NET only. I have some weird behavior that i need to understand what causing it, and i don't think on any better alternative. Thanks ...

How do I stop tracing a function in clisp?

I've been tracing a function example with this call (trace example) and now I wish to stop tracing it, how can I do this? ...

Trace large C++ code base?

Problem: I have just inherited this 200K LOC source code base. There's only a small part of it I need (and I want to rip all else out). What I would like to do is to be able to: 1) run the program a few times 2) have something (here's where you come in) record which lines of code gets executed 3) then rip out all the irrelevant l...

ptrace'ing of parent process

Hello Can child process use the ptrace system call to trace its parent? Os is linux 2.6 Thanks. upd1: I want to trace process1 from "itself". It is impossible, so I do fork and try to do ptrace(process1_pid, PTRACE_ATTACH) from child process. But I can't, there is a strange error, like kernel prohibits child from tracing their parent...

ETW tracking from .net, user mode and driver

Hi everyone, We have an application that parts of it are in .net, c++ usermode and C++ drivers. The application is divided into several executables that run on demand and communication with each other using LPC(the processes run in different sessions(winlogon)). Currently We have a home written logging service to which .net and c++ use...

What log viewer tools can read the XML created by System.Diagnostics.EventSchemaTraceListener?

I am in the process of converting our logging implementation to use System.Diagnostics.TraceSource. We want to take advantage of activity tracing and we want to read multiple log files from multiple servers with tools like WCF's svctraceviewer & logparser. I have converted our code to use TraceSource and now I am in the process of eval...

Toggling TraceSwitch at runtime

I'm trying to get access to some diagnostic information available in the .NET System.Net tracing functionality in my application. I am aware that I can set the tracing level using the appropriate .config, but I was hoping to be able to toggle the switch programatically. (i.e. turn tracing on during particular parts of my program execut...

.word directives in MIPS assembly

.data VALS: .half 0xbead, 0xface RES: .space 4 .text la $t0,VALS lh $t1,($t0) lhu $t2,2($t0) sll $t2,$t2,16 or $t2,$t1,$t2 jal AVG .word -2 .word -6 la $t4,RES sw $v0,($t4) li $v0,10 syscall AVG: lw $v0,($ra) lw $t3,4($ra) add ...

Guidelines for logging (tracing) in a Windows application

As I see it there are two different types of logging: User-focused logs, like those produced by my anti-virus ("started scan", "no threats found", etc.) Developer-focused traces, which may be as simple as a log of exceptions or as detailed as a log of every method call I'm currently planning how to incorporate the second type of logg...

C# trace https soap requests?

I have a C# app that is sending soap requests over an https channel. Is there any way I can add tracing to just dump every request into a log file? I am getting an error, so im not sure if what I am sending is proper. ...

Consuming "Event Tracing for Windows" events

An answer to this question has led me to look into using "Event Tracing for Windows" for our tracing needs. I have come across NTrace, which seems to be a good way to produce ETW events from C# code (using the XP-compatible "classic provider" model). However, I am unable to find an easy way to consume these events - to see them in real-...

Tracing Erlang Functions - Short forms

As you might know, it's now possible to trace Erlang functions by using the short form: dbg:tpl(Module, Function, x). Instead of the usual: dbg:tpl(Module, Function, dbg:fun2ms(fun(_) -> exception_trace() end)). I'm actually wondering if a similar short form is available for return_trace(). Something like: dbg:tpl(Module, Function...

Better way to make a bash script self-tracing?

I have certain critical bash scripts that are invoked by code I don't control, and where I can't see their console output. I want a complete trace of what these scripts did for later analysis. To do this I want to make each script self-tracing. Here is what I am currently doing: #!/bin/bash # if last arg is not '_worker_', relaunch with...

How to monitor MySQL query errors, timeouts and logon attempts?

While setting up a third party closed source CMS (Sitefinity) the setup doesn't create all tables and procedures necessary to run it. The software lacks a logging system itself and it made me wonder: could I trace and monitor failing SQL statements from MySQL? This serves more than only the purpose of solving my issue with Sitefinity. M...

What is the list of trace sources supplied by the .Net framework?

.Net defines a "Trace Source" concept, allowing configuration files to specify which trace sources to listen for messages on. WCF provides several trace sources, and I would presume that other portions of the .Net Framework BCL publish other trace sources as well. What is the list of trace source names published to by the BCL? ...

How can I hide tracing code in Visual Studio IDE C# ?

As I'm starting to put more tracing in my code, i'm realizing it adds a lot of clutter. I know Visual Studio allows you to hide and reveal code, however, i'd like to be able group code into "tracing" code and then hide it and reveal at will as i'm reading the code. I suppose it could do this either per file or per class or per function. ...

system.Net Tracing - Not able to view Request Body in single line

Hi All, I am using system.Net tracing to log what is being sent over the wire. I am able to see the Http Request Body content but are in seprate lines. I want to see like below <s:Envelope xmlns:s="http://schemas.xmlsoap.org/.........................&lt;/s:Envelope&gt; Not like this System.Net Verbose: 0 : [118756] Data from Connec...

Question about effective logging in C#

I've written a simple class for debugging and I call the method Debugger.WriteLine(...) in my code like this: Debugger.WriteLine("[Draw]", "InProgress", "[x,y] = " + x.ToString("0.00") + ", " + y.ToString("0.00") + "; pos = " + lastPosX.ToString() + "x" + lastPosY.ToString() + " -> " + posX.ToString() + "x" + pos...