Advanced .NET Debugging by Mario Hewardt

By Mario Hewardt

“Mario Hewardt’s Advanced .NET Debugging is an outstanding source for either newbie and skilled builders operating with .NET. The e-book is usually jam-packed with many debugging suggestions and discussions of CLR internals, for you to profit builders architecting software.”

–Jeffrey Richter, advisor, coach, and writer at Wintellect


“Mario has performed it back. His Advanced home windows Debugging (coauthored with Daniel Pravat) is a useful source for local code debugging, and Advanced .NET Debugging achieves a similar caliber, readability, and breadth to make it simply as beneficial for .NET debugging.”

–Mark Russinovich, Technical Fellow, Microsoft Corporation

The merely whole, sensible advisor to solving the hardest .NET Bugs


Advanced .NET Debugging is the 1st centred, pragmatic advisor to monitoring down today’s most intricate and tough .NET program insects. it's the merely booklet to concentration totally on utilizing strong local debugging instruments, together with WinDBG, NTSD, and CDB, to debug .NET functions. utilizing those instruments, writer Mario Hewardt explains the way to establish the true root motives of problems—far extra speedy than you ever may well with different debuggers.


Hewardt first introduces the main recommendations had to effectively use .NET’s local debuggers. subsequent, he turns to classy debugging innovations, utilizing real-world examples that show many universal C# programming errors.


This booklet allows you to

  • Make functional use of postmortem debugging, together with PowerDBG and different “power tools”
  • Understand the debugging information and implications of the recent .NET CLR 4.0
  • Master and effectively use Debugging instruments for home windows, in addition to SOS, SOSEX, CLR Profiler, and different robust tools
  • Gain a deeper, more effective realizing of CLR internals, resembling studying thread-specific facts, controlled heap and rubbish collector, interoperability layer, and .NET exceptions
  • Solve tough synchronization difficulties, controlled heap difficulties, interoperability difficulties, and lots more and plenty more
  • Generate and effectively examine crash dumps 

A better half site ( includes all pattern code, examples, and bonus content.

Show description

Read or Download Advanced .NET Debugging PDF

Similar .net books

eXtreme .NET: Introducing eXtreme programming techniques to .NET developers

Severe . web indicates builders and crew leaders the way to comprise severe programming (XP) practices with . NET-connected applied sciences to create top of the range, inexpensive code that may construct higher software program. This useful, lifelike guidebook systematically covers key parts of XP technique within the particular context of the .

Pro ASP.NET 3.5 Server Controls and AJAX Components (Pro)

Microsoft's ASP. web know-how is a well-liked and enduring know-how that may be improved with customized server controls. customized server controls enable programmers so as to add complex positive factors to their websites by means of extending latest, famous controls akin to textual content packing containers and buttons. This e-book covers the right way to paintings with customized server controls and the way so as to add AJAX features into those purposes with Microsoft's implementation of AJAX, ASP.

MCAD MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C# .NET and the .NET Framework

This certification examination measures the power to improve and enforce XML internet providers and server parts utilizing visible C# and the Microsoft . internet Framework. This examination, published in September 2002, counts as a middle credits towards the hot MCAD (Microsoft qualified program Developer) certification in addition to a center credits towards the recent MCSD .

SharePoint 2010 Development with Visual Studio 2010

With SharePoint 2010, builders eventually have the strong, end-to-end improvement instruments they should construct impressive strategies fast and painlessly. What’s extra, these instruments are outfitted without delay into the most recent model of visible Studio, the improvement platform so much Microsoft builders already understand.

Additional info for Advanced .NET Debugging

Sample text

Figure 1-2 shows an example of a view when profiling the CLR Profiler itself. As can be seen in Figure 1-2, the CLR Profiler offers a very detailed view of the allocation history and hierarchical relationships in a given application run. We will look at the specifics of the different CLR Profiler views in upcoming chapters. Figure 1-1 CLR Profiler Start dialog CLR Profiler 13 1. INTRODUCTION TO THE TOOLS Figure 1-2 Sample View when profiling the CLR Profiler The data collected is output to a log file that is by default located in %windir%\Temp.

NET framework matured, so did the debugger extension, and it became known as Son of Strike (SOS). help for more details about each command. 0:000> We will utilize the SOSEX extension throughout the book to make it easier to debug some of the scenarios that will be illustrated. aspx? FamilyId=A362781C-3870-43BE-8926-862B40AA0CD0 &displaylang=en 1. INTRODUCTION TO THE TOOLS SOSEX is another debugger extension targeted at the native debuggers and managed code debugging. It was developed by Steve Johnson and is available as a free download.

NET execution model 2. CLR FUNDAMENTALS Is Microsoft’s CLR the only implementation of the CLI out there? Not quite. Because the CLI has become increasingly popular, there are a number of companies/organizations that have produced their own CLI-compliant runtimes. A great example of such an implementation is the Mono project (sponsored by Novell). In addition to being an open source project, the Mono CLI implementation can run on Windows, Linux, Solaris, and Mac OS X. 0), aka Rotor project, which includes a CLI-compliant implementation of the standard.

Download PDF sample

Rated 4.17 of 5 – based on 46 votes