首页 > 数据库技术 > 详细

WinDbg抓取dmp文件

时间:2015-01-16 14:19:59      阅读:401      评论:0      收藏:0      [点我收藏+]

应用程序发生异常时抓取dmp:

adplus.vbs -crash -pn w3wp.exe -y srv*c:\symbols*http://msdl.microsoft.com/download/symbols

关于w3wp进程抓取不到dump文件,可参考:

http://blogs.msdn.com/b/stuartleeks/archive/2009/07/22/adplus-windows-7-and-asp-net.aspx

对adplus.vbs作如下修改:

if g_CurrentProcesses(PCount).Name = "W3WP.EXE" Then
    ‘ read the next line
    if not objTextFile.AtEndofStream Then
        strAux = objTextFile.ReadLine
        ‘ check the command line for the -ap parameter
        If InStr(strAux, "-ap") Then
            arrAux = split(strAux, "-ap", -1, 1)
            strPackageName = trim(arrAux(1))

‘ modifications start (http://blogs.msdn.com/stuartleeks/archive/2009/07/22/adplus-windows-7-and-asp-net.aspx)
If Mid(strPackageName, 1, 1) = """" Then
    strPackagename = Mid(strPackageName, 2, InStr(2,strPackageName, """") - 2)
End If
‘ modifications end

  

WinDbg抓取dmp文件

原文:http://www.cnblogs.com/MrHacker/p/4174170.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!