Pages

Monday 28 April 2014

Debug Diagnostic Tool

Debug Diagnostic Tool

The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or memory fragmentation, and crashes in any user-mode process. The tool includes additional debugging scripts focused on Internet Information Services (IIS) applications, web data access components, COM+ and COM+ related Microsoft technologies, SharePoint, and .NET framework.

It is composed of the following 3 components: a debugging service, a debugger host, and the user interface.

The Debugging Service The debugger service (DbgSvc.exe) performs the following tasks:

  • Attach/Detach the host to processes
  • Collect performance monitor data
  • Implement HTTP ping to detect hangs
  • Inject leak monitor into running processes
  • Collect debugging session state information
  • Shows the state of each rule defined
    The Debugger Host The Debugger Host (DbgHost.exe) hosts the Windows Symbolic Debugger Engine (dbgeng.dll) to attach to processes and generate memory dumps. It also hosts the main analyzer module to analyze memory dumps. Dbghost.exe has no dependency on the service “DbgSvc.exe” and can be used separately. The User Interface The user interfaces (DebugDiag.exe and DebugDiagAnalysisOnly.exe) present an interface to analyze memory dumps, automate the creation of control scripts and to show the status of running processes, including services. It is composed of 3 views: 

    • Rules: Creates control script for the debugger host through a wizard. The script is located under the directory \scripts.
    • Advanced Analysis: Runs a selected “Analysis Script” against one or more memory dumps.
    • Processes: Shows status of running processes/services.

Features of Debug Diagnostic Tool

Analysis:

.Net 2.0 and higher analysis integrated to the Crash Hang analysis.
SharePoint Analysis Script.
Performance Analysis Script.
.NET memory analysis script (beta).
Native heap analysis for all supported operating systems

Collection:

Generate series of Userdumps.
Performance Rule.
IIS ETW hang detection.
.NET CLR 4.0 support.
Managed Breakpoint Support.
Report Userdump generation to the Event log.

Deployment

Import/Export of rules and configuration, including ‘Direct Push’ to remote servers.
Enterprise deployment support using XCopy and Register.bat.
Download the tool from the below links
http://www.microsoft.com/en-us/download/details.aspx?id=26798



Refrences : http://www.microsoft.com/en-us/download/details.aspx?id=26798
                    http://adicodes.com/performance-tool-debug-diagnostic-tool/#more-1147

Friday 25 April 2014

Get Query string values using JavaScript


You don't need jQuery for that purpose. You can use just some pure JavaScript:

function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}

Usage:

var Location = getParameterByName('location');   // Location = india