WinDbg抓取dmp文件

应用程序发生异常时抓取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

  

上一篇:PL/SQL之异常


下一篇:[实战演练]python3使用requests模块爬取页面内容