Bug Types

> Heisenbugs occur because common attempts to debug a program, such as inserting output statements or running it in a debugger, usually modify the code, change the memory addresses of variables and the timing of its execution. One common example of a heisenbug is a bug that appears when the program is compiled with an […]

How to discover multi threading related bugs and debug them?

Multi threaded applications are great, they provide high performance, high throughput but tackling concurrency issues are sometimes not easy. Especially preemption related bug cannot be easily reproduced. Thus Microsoft created a useful tool called CHESS, to simulate all possible preemptions for your multi threaded application.

How to correctly implement multi-threading in C# http://csharptest.net/323/how-to-correctly-implement-multi-threading-in-c/

Tools And […]

Diagnosing ASP.NET Apps

Diagnosing Stack Overflow Faults in ASP.NET Production Environments http://blog.tatham.oddie.com.au/2009/07/04/diagnosing-stack-overflow-faults-in-asp-net-production-environments/

Debugging with WinDbg

http://www.davidtruxall.com/blog/2009/09/28/DebuggingWithWinDBG.aspx

Debugging managed code memory leak with memory dump using windbg http://blogs.msdn.com/b/paullou/archive/2011/06/28/debugging-managed-code-memory-leak-with-memory-dump-using-windbg.aspx

Debugging dump files created on another machine http://wallaceturner.com/debugging-dump-files-created-on-another-machine

 

Debugging managed code memory leak with memory dump using windbg http://blogs.msdn.com/b/paullou/archive/2011/06/28/debugging-managed-code-memory-leak-with-memory-dump-using-windbg.aspx

Where’s your leak at? [Using WinDbg, SOS, and GCRoot to diagnose a .NET memory leak] http://dlaa.me/blog/post/9471347

 

 

 

[…]

Debugging and SharePoint

Debugging tips for SharePoint SharePoint Trace Logs and the Unified Logging Service (ULS)

reverse engineering with reflector on x64

Did you know that there is an add in, called deblector, for reflector to do debugging?

Reflector + Deblector + x64 = 0x80131C30

.NET Reflector Add-InsDebugging .NET IL at Runtime using Reflector / Deblector Howto use deblector -Forum Thread

“The breakpoint will not currently be hit. No symbols have been loaded for this document.” by Doug Butscher

Probably a DLL in your GAC does not have the same symbols which are in your dev bin folder. Overwrite the DLL with your development one and most probably the error will be gone.

Also be aware that in Sharepoint solutions GAC DLLs can be locked by VS.NET, please check the following link:

http://alexangas.com/blog/2009/07/debugging-file-locking-in-the-gac/

“While […]

Unable to start debugging on the web server. An authentication error occured while communicating with the web server

Quote From: http://provenit.blogspot.com/2008/02/unable-to-start-debugging-on-web-server.html

1. In the “Internet Options” control panel, go to the Security tab. Add “http://localhost” to your list of “Trusted Sites”2. Again, for “Trusted Sites”, clilck the “Custom Level…” button. Change the value of User Authentication to “Automatic login with current username and password”.3. In the new IIS manager, ensure that the web […]

use ApplicationName property in ConStr and ease your Traces

Use ApplicationName of the connection string and ease your sql profiler traces, this will provide the application’s name which is executing the query. i.e:

connectionString=Data Source=MyServer;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=MyUserName;Password=MyPassword;Application Name=My Application

Take Advantage of Application NameSqlConnectionStringBuilder.ApplicationName Property

Filmon, Regmon, and Security Issues are explained

Mark Russinovich’s technical blog covering topics such as Windows troubleshooting, technologies and security.

Buffer Overflows in Regmon Traces

Buffer Overflows in Filemon

You receive an “HTTP Error 401.1 – Unauthorized: Access is denied due to invalid credentials” error message when you try to access a Web site that is part of an IIS 6.0 application […]