Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > C-Sharp > Debug and Tracing


Search:
What's New - What's Hot
Using PDB files and symbols to debug your application  Version: 0.00     Price: $0.00  
Total Hits: 11  |  Today: 0Author: Yanick Salzmann      Rating:  
Read Reviews | Write Review |  Your Rating: 

Errare humanum est (Latin for "to err is human") is a well known proverb which is applicable in nearly every aspect of life. You probably won't be able to find a programmer who has never encountered an error when running a program and has searched for ages to find the cause of it. Today, where code is often widely spread or even outsourced to the Cloud (think of Windows Azure, for example), this task gets even more complicated. That is the reason why efforts were always made to find mechanics th...

Utilizing Debug class in .NET  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: Adil Mughal      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the alternatives yet underutilized way to debug code in .NET is using Debug class found in System.Diagnostics Namespaces. This class really gives a bunch of functionality to developers that are very useful for debugging and I wonder why but I have observed that fewer percentage of developers use it. So I thought of sharing the usage of Debug class with developers out there as I found it very useful....

Use DebuggerBrowsable Attribute for a better view in debugger window  Version: 0.00     Price: $0.00  
Total Hits: 35  |  Today: 0Author: Palash Biswas      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are lots of simple tricks in .net which can be very useful if you used wisely. In this post I want to discuss the use of DebuggerBrowsableAttribute. Using this attribute you can control how a member of class will be displayed in debugger windows during debugging. Before that consider small example:...

The .NET bug: the finally block could be executed twice  Version: 0.00     Price: $0.00  
Total Hits: 44  |  Today: 0Author: Laurent Fournié      Rating:  
Read Reviews | Write Review |  Your Rating: 

You remember the matrix "D?j? vu" bug where the same sequence is executed twice. I think I have found the root cause of this. The matrix encounters a .NET Framework bug. To make a long debugging story short, I have been chasing an intermittent lock leak that was not the kind you find in textbooks. One of my threads acquires a lock but does not release it (so far nothing exciting)....

Custom Web Visitor Tracking using C#     
Total Hits: 98  |  Today: 0Author: Haja      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you want to collect more data about your website visitors and client platform which is not provided by IIS log files you can use this simple technique to do that. If you are able to collect the data from the server side and if you have full control over the server side page creation code probably this technique will not be required at all for you....

A better memory managed MFC CArray     
Total Hits: 73  |  Today: 0Author: Nguyen Binh      Rating:  
Read Reviews | Write Review |  Your Rating: 

When I used MFC's CArray in one of my projects, I found it's not very heap-friendly.

It does use a pre-allocated memory pool but it doesn't use it clearly. For example, it doesn't have a constructor that allow us to explicitly declare the size of our pre-allocated memory pool. Furthermore, I think MFC CArray doesn't make clear between the actual memory pool size and the elements size of the array.

And if we really need to "pre-allocate", we has to make use of its grow-by variable, ...

Object Explorer     
Total Hits: 67  |  Today: 0Author: Leon Langleyben      Rating:  
Read Reviews | Write Review |  Your Rating: 

In medium to large scale IT project you will end up with quite a lot of business logic objects. To test each one of them you generally create some kind of test window that will accept initial data, run some logic, and then display new object states. So we will have window with a nice [GO!] command button and a bunch of labels to display properties and fields of a business entity after processing, and a couple of dozens lines of boring code to copy data from object instance to these labels. If yo...

Not So Simple Error Log     
Total Hits: 76  |  Today: 0Author: DavidNohejl      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is a remake of Simple XML based Error Log. However in this release, I've made lot of changes so I'd rather come up with a new article instead of an update. The basic idea is the same, to log exceptions which have occurred in your application into an XML file. The major differences are:
* All Exceptions are logged as derivate from base exception DNHCommonException from namespace DNH.Common. I'll write about it in detail later in this article.
* ErrorLog provides more op...

Traceract     
Total Hits: 70  |  Today: 0Author: Marc Clifton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Traceract is a prototype debug message tracer. The name is a combination of the words "tesseract" and "trace", as it adds "dimension" to the usual debug trace output. In particular, Traceract provides a simple command interface, directing the viewer to output trace messages to a particular window. Although it is still in its infancy, I find it quite valuable simply as is, although there are a myriad of features I would like to add to it over time. One reason to put this in the public domain is t...

FreeCell & Hearts, Behind the scenes     
Total Hits: 49  |  Today: 0Author: Arik Poznanski      Rating:  
Read Reviews | Write Review |  Your Rating: 

Yep, again. For those of you who liked my first article "Minesweeper, Behind the scenes" I present here his natural sequel. The idea came when a friend of mine read the former article and joked me about it, "now do hearts.." he said, so I did and this article is the final result. At this point I would like to thank some friends who helped me, Itay Langer, Michael Kuperstein and Yoav Sion (in alphabetical order)....

Windows Service Test Form     
Total Hits: 333  |  Today: 0Author: John Boero      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are a few articles on the internet on debugging Windows Services in VS 2005. The official method is to attach a debugger to the service process once it has started. This makes it difficult to step through a service's startup process. The article, Debugging Windows Services under Visual Studio .NET, by Lee Humphries shows how to isolate individual methods using the DEBUG preprocessor directive. Here, we go a step further and create a test form as a sort of "service sandbox", to allow more i...

Traceract     
Total Hits: 306  |  Today: 0Author: Marc Clifton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Traceract is a prototype debug message tracer. The name is a combination of the words "tesseract" and "trace", as it adds "dimension" to the usual debug trace output. In particular, Traceract provides a simple command interface, directing the viewer to output trace messages to a particular window. Although it is still in its infancy, I find it quite valuable simply as is, although there are a myriad of features I would like to add to it over time. One reason to put this in the public domain is t...

Application.EnableVisualStyles Bug  Version: 0.00     Price: $0.00  
Total Hits: 599  |  Today: 0Author: Don Kackman      Rating:  
Read Reviews | Write Review |  Your Rating: 

Version 1.1 of the .NET framework introduced the method System.Windows.Forms.Application.EnableVisualStyles. Calling this method prior to the creation of any Forms or Controls, will cause Windows XP to apply a theme when rendering Windows Common Controls and many of the native .NET controls like Buttons and CheckBoxes....

Update TFS WorkItem from Microsoft Access using VBA Code  Version: 0.00     Price: $0.00  
Total Hits: 40  |  Today: 0Author: Ayman Zaza      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many IT users are not familiar with C# code or other languages to create small applications. They build their applications using Microsoft Access/Excel because it does not need any programming experience. They can add forms/reports without writing a single line of code. In my organization, some departments like release management and IT testing have small applications developed in Microsoft Access or Microsoft Excel to track their own work, but when the change management implements Team foundati...

Debugging C# Application Part 3 : Tracing  Version: 0.00     Price: $0.00  
Total Hits: 12  |  Today: 0Author: Sivaraman Dhamodaran      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this third and last part of the debugging I will show you how do you get debugging information in the form trace. This will be helpful when the application deployed in the customer place. It is not possible to do the debugging, as we usually do not keep the source code on the deployed environment....

Implementing a Multithreaded HTTP/HTTPS Debugging Proxy Server in C#  Version: 0.00     Price: $0.00  
Total Hits: 20  |  Today: 0Author: matt-dot-net      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article will show you how to implement a multithreaded HTTP proxy server in C# with a non-standard proxy server feature of terminating and then proxying HTTPS traffic. I've added a simple caching mechanism, and have simplified the code by ignoring http/1.1 requests for keeping connections alive, etc....

Tracking downloads using an HTTPHandler  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: Mike Hankey      Rating:  
Read Reviews | Write Review |  Your Rating: 

Not long ago, I developed a freeware application and made it available on my site for download. In a short period of time, it has started to become somewhat popular, can tell by download stats on some of the other sites where I made it available so I wanted to be able to track the number of downloads of any of the files that were being downloaded from my site and this is the solution I came up with....

Tips on Debugging : Using DebuggerHidden attribute  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Abhijit Jana      Rating:  
Read Reviews | Write Review |  Your Rating: 

DubuggerHidden attribute tells the Visual Studio debugger that the method is hidden from the debugging process and while debugging. This is quite helpful when you don't want to go to stepping inside of a method while debugging.

When you mark a method with DebuggerHidden() attributes, it explicitly tells the debugger not to step inside of that method and no break point will be hit over that method. Now I am going to explain the same using an example with Intellitrace debugging....

Source Indexing and Symbol Servers: A Guide to Easier Debugging  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: SK Genius      Rating:  
Read Reviews | Write Review |  Your Rating: 

A while ago I had to set up a symbol server, with source indexing and at the time there wasn’t a lot of information on the subject so I had some trouble getting everything to work the way we wanted. Unfortunately there is still only that same information around but a lot more people seem aware of it since Microsoft released the source to the .Net framework and automatically added their symbol server to Visual Studio 2010. Most people who work with the .Net framework will now be aware that they c...

Debug Tutorial Part 1: Beginning Debugging Using CDB and NTSD  Version: 0.00     Price: $0.00  
Total Hits: 7  |  Today: 0Author: Toby Opferman      Rating:  
Read Reviews | Write Review |  Your Rating: 

Debugging is one of the most valuable skill sets when it comes to software development and maintenance. This is a skill that is used at every stage of a product's life cycle. The developer first creating the project will obviously run into bugs. These bugs can be anywhere from logic bugs to syntax bugs and compiler errors. The quality assurance being conducted on the software may run into problems as more advanced scenarios are tested and the software interacts with other environments. Finally, ...


1  2  3  4  5  6  7  8  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net