trace

Tagging sql statements for tracing and debugging

We have a large enterprise consisting of many apps both old and new backed by Oracle 10G. When blocking sessions or deadlocks occur and we get trace reports it would be super handy to be able to have embedded some details in the sql so that we know both what app, and specifically where it was executed from. In addition to helping speed...

Trace and Debug statements.

Im a little confused over how to use the .NET Trace and Debug classes. Why would you bother using Trace instead of Debug? Trace.TraceError() Trace.TraceInformation() Trace.Assert() Debug.WriteLine() Debug.Assert() Also, I understand that Debug statements are ignored when your in Release config mode, but If trace statements apply all ...

Looking for a simple explanation on using trace logging

I have seen several projects that use the Trace functionality to capture events and stream them out to a log file. I have been unsuccessful in finding a simple to follow guide that will show me how to configure Trace to capture and write said logfile. Does anyone have a link recommendations, or provide some simple steps to follow? ...

How can I consume IIS7's FREB programatically

IIS 7 has a very useful feature called Failed Request Tracing (FREB for short). It has a very nice visualization feature, involving an extremely complex XSL stylsheet that parses the results into a useful treeview. I, however, want to consume FREB programatically, and be able to present the results on my smart client (without waiting fo...

Tracing IO in java application ?

I am trying to find out why Apache CXF is running away doing "something" upon first-time initialization of a web-service. "Something" is probably some kind of IO, and I'm guessing it's trying to resolve an external address/schema/DTD of some sort. So I'm trying to find some kind of hook where I can monitor all IO. Either at VM level or ...

Insert Tracepoint: how to set the default message?

In MS VisualStudio (I'm using 2005), it's possible to right-click in some code file and 'insert tracepoint' right there. The default message printed when the tracepoint is hit is Function: $FUNCTION, Thread: $TID $TNAME. I would rather have it different (e.g. Thread: $TID [{(void*)this}::$FUNCTION]). Now it's easy to just type in the ...

WinDbg -- TraceListener and Saturated ThreadPool

I have a multithreaded .NET Windows Service that hangs intermittently -- maybe once every two weeks of 24/7 operation. When the hangs occurs the threadpool is completely saturated because calls to our custom tracelistener start blocking for some reason. There aren't any locks in the offending code nor anything blocking according to windb...

How to PRINT a message from SQL CLR function?

Is there an equivalent of PRINT 'hello world' which can be called from CLR (C#) code? I'm trying to output some debug information in my function. I can't run the VS debugger because this is a remote server. Thanks! ...

How would you build a HttpTraceListener?

Hello all, My application uses the Trace object to log information. The information is captured in a file with the TextWriterTraceListener and it works perfectly. However, I would like to add another TraceListerner which will record the information to a Web Service. In other words, I need an HttpTraceListener. Moreover, I need something...

Trace file - how to use it

Hello all, we have an application running on an IIS 6/ASP.NET 2.0 backed by a SQL Server 2005 STD edition X64. From time to time, the application crashes with some silly messages (some of the fileds are not found into a "select firled1, filed2.. from mytable"). I obtained a trace of the activity from the sql server taken while the appli...

How to write Vim foldexpr for xdebug trace files with memdeltas

I know nothing about Vim expressions. I have a vim foldexpr that comes with a syntax file for xdebug trace files. The existing expression looks like this: foldexpr=strlen(substitute(substitute(substitute(substitute(getline(v:lnum),'^TR.*$','',''),'\\s>=>','->',\"g\"),'^\\s.\\{20\\}\\(\\s\\+\\)\\?->.*$','\\1',''),'\\s\\s','\',\"g\"))-2 ...

VB.NET Tracing Variables

I'm working on an approach to trace logging for my company's VB.NET project. The .NET framework has pretty versatile trace capabilities and I'd like to use what .NET already provides. My company wants to stay away from 3rd party software, so log4net and whatnot is out of the question. They want to be able to trace the flow of the web ...

Tracing write access to class instance/memory range in gdb

Hi, I am trying to debug a small operating system I have written in an university course in C++. At runtime somewhere one of my objects is getting corrupted. It seems like this happens due to accidentally writing to the wrong memory address. As I am unable to find the place where this happens from pure looking at the code, I need anothe...

How can I add a Trace() to every method call in C#?

I am having a hard time tracking down a lock issue, so I would like to log every method call's entry and exit. I've done this before with C++ without having to add code to every method. Is this possible with C#? ...

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 own Customisable trace switches (error, warning, info, verbose, start, end, custom) Customisable co...

How can I export trace.axd to a file

Hey, This probably has an easy answer, but I haven't been able to find one yet. I was wondering if there was a simple solution to exporting the page-level trace results of trace.axd to a log file of some sort. Thanks ...

How to find out if a .Net Assembly was compiled with the TRACE or DEBUG flag

Is there any way to find out if an Assembly has been compiled with the TRACE or DEBUG flag set without modifying the assembly. ...

Web Dev Helper like HTTP request trace in IE8

The awesome tool Web Development Helper allows me to see ALL the http requests from the browser (IE6/IE7) to the server. However the tool does not seem to work in IE8-RC1. Does IE8 developer tools have a similar feature built in? If yes, how do I access it? TIA rams ...

Tracing ODBC calls for Informix Client for Linux

I tried to trace ODBC function calls from my program working on Linux. This program dynamically links ODBC manager and then connect to database and fetch some data. I can trace ODBC calls with unixODBC by adding to odbcinst.ini: [ODBC] Trace=yes TraceFile=/tmp/sql.log This method is documented by IBM: Collecting data for an ODBC Prob...

What is the best way to monitor (java) process deaths on a Windows box?

We have a curious problem with our java processes dying. The application doesn't stacktrace, or write anything to the logs, the process just randomly dies. It's a heavily used application, but the problem only appears about once a month. We're currently looking into using Process Monitor but any other suggestions would be welcome. Edi...