tracing

TraceSwitch and SourceSwitch - what's the difference?

So I'm probably missing the obvious here, but what actually is the difference between the functionality of the TraceSwitch and SourceSwitch classes? They both give identical summary descriptions: Provides a multilevel switch to control tracing and debug output without recompiling your code. Are the Remarks sections are oddly simil...

Help debugging WCF

I am new to WCF programming and am finding the learning process rather frustrating. As far as I can tell, WCF (and WPF, for that matter) will hide errors from you by default. So far I have experienced the following problems and had essentially zero indication from Visual Studio or the runtime that there was anything wrong (other than m...

Trace the code in Ruby?

Is there a good way to run a script and see all the steps: Which code is executed Which file the code is in What it returns The error messages This would be a good way to learn how an open source project is working. Aren't there solutions like this for Ruby? Eg. require "httparty" HTTParty.get "http://www.google.se" Then it woul...

WCF Trace Log analysis - help

I am having trouble deciphering a WCF trace file, and I hope someone can help me determine where in the pipeline I am incurring latency. The trace for "Processing Message XX" is shown below, where there appears to be 997ms delay between the Activity Boundary and the transfer to "Process Action" where my service code is executed (which ta...

Linking of Method calls

I had to define a new set of wrappers for existing methods. These new wrappers intend to help in debugging by including certain tracing information. Original Source Code: Sample.c :: Caller{ void functionA(){ funcB(); } } Callee{ void funcB(){ } } Modified Code with Traditional Wrapper Functionality: Sample.h :: #define fu...

WCF Tracing not working in IIS 6.0

How do I make tracing work in IIS 6.0 ?, The same works fine with IIS 5.1 but not in IIS 6.0. I have tried giving permissions to ASPNET user and also enabled write permissions in the virtual directory. Below is the code snippet from web.config <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="In...

WebLogic Diagnostic Framework (WLDF): Alternatives?

Hi, WLDF (WebLogic Diagnostic Framework) allows many performance-related analyses - in particular resource demands tracking and tracing across classes and methods. In that sense, it is similar to a profiler - however, it works on the server side, and is bound to the particular product/vendor. Are there any other products (maybe even o...

How to send my own messages to WCF trace file?

So I have my WCF service right now running self-hosted on a console app, but I also have them on IIS. The thing is I'm learning to understand the Service Trace Viewer Tool, and of course, now I want to go a little further and write my own messages to include in the trace files. I tought it should be easy but Trace.TraceInformation writ...

How to use IIS 7 custom logging module and ETW tracing module

Hi, I notice that IIS 7 has a custom logging module logcust.dll. It is said this module helps load your own custom logging module. But I can't find any information about how to use it. I opened this DLL and notice that it implements IHttpModule and register to all events but does nothing in event handlers. Same question for another IIS ...

Get network tracing information without enabling tracing

I'm writing a little proxy server, and I'm trying to debug a problem. If I refresh the browser twice quickly, my proxy throws an exception, usually with no stack trace or indication of where the problem is. I have a hunch it has to do with a socket being closed prematurely by the browser, or being used for two different requests in my pr...