drwtsn32.exe和adplus.vbs进行dump文件抓取

drwtsn32.exe windows自带调试工具 drwtsn32.exe 调试工具 windows自带调试工具 立即下载

转自:http://hi.baidu.com/justin_wu2010/blog/item/cc31641fa8d84f0f314e15b1.html

 

   以前只在linux和unix下面才用过dump文件抓取的方式进行程序执行异常的分析。对windows却是没有用,因为windows下的调试工具实在是太方便了,基本可以不用其它的工具。其实在windows下对底层和无征兆性的异常很大程度上,dump可以帮忙我们确定问题所在。

    在windows下,进行dump文件获取,常用的工具为drwtsn32.exe和adplus.vbs。drwtsn32.exe是windows系统自带的,在命令行里输入即可调起,比较适合在没有开发环境下的截取;adplus.vbs是windbg带的一个小工具,功能比drwtsn32.exe强大,可以自由(任意时刻)对执行的进程进行dump文件的提取。
   
    drwtsn32.exe(dr.watson)(dr即doctor)界面比较简单,没多少内容,在命令行调起后进行一定的配置,再将它设置为默认调试工具就行了,那么执行程序异常时,就会生成dump文件。注册表中的位置可以进行开关:HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/AeDebug/Auto
drwtsn32 参数:
drwtsn32 [-i] [-g] [-p pid] [-e event] [-?]
-i 将 DrWtsn32 当作默认应用程序错误调试程序
-g 被忽略,但作为 WINDBG 和 NTSD 的兼容而被提供
-p pid 要调试的进程 id
-e event 表示进程附加完成的事件
-? 这个屏幕
   
    adplus.vbs参数:

ADPlus uses the following syntax:

adplus.vbs [-quiet] [-c ConfigurationFile] { -hang | -crash }
    { -iis | -pn Process | -p PID | -sc SpawningCommandLine }
    [-notify Name] [-o Directory] [-cdh] [-cdc]
    [-cdj] [-gs ScriptName] [ -ce CustomExceptionCode]
    [-bp BreakpointParameters] [-y SymbolPath]
    [-yp SymbolPathToAdd] [-FullOnFirst] [-MiniOnSecond]
    [-NoDumpOnFirst] [-NoDumpOnSecond] [-NoTlist]
    [-NoTsCheck] [-dbg Debugger]

adplus.vbs -Help

The command line is parsed from left to right. When a target is specified, ADPlus will use all the options it has parsed up to that point. This allows you to create a long command line with multiple targets, specifying different options for each target. One easy way to perform this task is to store options in configuration files and use the -c parameter to point to these files.

Parameters
-quiet
This option tells ADPlus to suppress all modal dialog boxes. This option is useful if you are running ADPlus from within a remote command shell where modal dialog boxes can cause ADPlus to wait indefinitely for a user to press OK.

For best results, make sure this is the first option passed to adplus.vbs.

-c ConfigurationFile
Allows you to provide an external configuration file with additional information. You can use more than one configuration file by using several -c switches. For example:

adplus -c c:/t/file1.cfg   -c c:/t/file2.cfg

You may omit a required switch if the equivalent setting is specified in the configuration file. For details, see ADPlus Configuration Files.

-hang
Configures ADPlus to run in hang mode. When ADPlus is running in hang mode, ADPlus must be started after the process hangs or is consuming high CPU utilization.
-crash
Configures ADPlus to run in crash mode. When ADPlus is running in crash mode, ADPlus must be started before the process crashes or becomes unstable.
-iis
Used to debug Internet Information Server (IIS) 4.0 or later. When you use ADPlus with the -iis option, ADPlus monitors all of the IIS in-process ( Inetinfo.exe) and out-of-process ( Mtx.exe and Dllhost.exe) applications. This option can be used in addition to the -pn or -p options, or it can be used by itself to analyze IIS and all running MTS/COM+ applications in either crash mode or hang mode.

If you are trying to analyze an IIS 3.0 (or earlier), you should use the -pn option and specify Inetinfo.exe as the process to monitor.

-pn Process
Specifies a process name that ADPlus should analyze. Process should include the file extension. To specify more than one process, use multiple -pn options. For example, "-pn process1.exe -pn process2.exe".
-p PID
The -p option is used to specify the process ID (PID) of a process that ADPlus should analyze. To specify more than one process, use multiple -p options. For example, "-p 1896 -p 1702".
-sc SpawningCommandLine
Allows you to provide a command line. The debugger will spawn the process inside the debugger and start monitoring it. This is only allowed in crash mode, and the -sc switch must be the last one to be provided, as everything that is provided after it is considered the command line to be used to spawn the selected process. If you want to spawn more than one process use the -c switch and a configuration file.
-notify Name
This option is only valid when ADPlus is running in crash mode. This option tells ADPlus to send an alert if a crash occurs. Name is the computer or user that will receive the alert. Whenever the debugger detaches from the process due to a second chance exception, or whenever a user presses CTRL+C to stop debugging, a notification will be sent to this computer or remote user or computer through the local messenger service. The local messenger service must be running on the target computer for this to work.
-o Directory
This option tells ADPlus where to place the debug output files. Long file names and file names containing spaces should be placed within double quotation marks. If a UNC path ( //server/share) is used, ADPlus creates a new folder immediately below the UNC path that is specified with the name of the server on which ADPlus is running (for example, //server/share/Web1 or //server/share/Web2). This option is useful if ADPlus is running on multiple computers in a Web farm that are all placing their output on the same network share.
-cdh
Signals ADPlus to use the default configuration file for hang mode. The default configuration file should be called ADP_Default_Hang.cfg and must be stored in the same directory of adplus.vbs.
-cdc
Signals ADPlus to use the default configuration file for crash mode. The default configuration file should be called ADP_Default_Crash.cfg and must be stored in the same directory as adplus.vbs.
-cdj
Signals ADPlus to use the default configuration file for postmortem debugging mode. The default configuration file should be called ADP_Default_JIT.cfg and must be stored in the same directory of adplus.vbs. This is normally used if you decide to use ADPlus as the default postmortem debugger, and the configuration should be similar to hang mode.
-gs ScriptName
When you use this switch, ADPlus will create the script to be used with the debugger with the given name, and will save it to a file. When you use this switch there is no need to select any process to debug.
-ce CustomExceptionCode
Allows you to add custom exceptions to be monitored by the debugger.
-bp BreakpointParameters
Allows you to define breakpoints to be monitored by the debugger. BreakpointParameters has the syntax address ; parameters. The additional parameters must be separated by semicolons and contain no spaces. They can be any of the following:
MiniDump, FullDump or NoDump
Indicates whether you want a dump. The default is no dump.
Integer
Indicates the number of passes to ignore.
Q or QD or G
Indicates whether you want to quit, quit and detach, or go after the action. The default is G.
BP or BU or BM
Indicates the type of debugger command used to create the breakpoint. The default is BP. If you use BM then you can define multiple breakpoints using wildcards in the address.

If you do not include any optional parameters, the default behavior is to create a log, list the call stack, and then let the target run.

-y SymbolPath
Alows you to define the symbol path. This accepts multiple folders separated by semicolons, including references to symbol servers.
-yp SymbolPathToAdd
Allows you to add a symbol path to the path already defined in the debugger . This accepts multiple folders separated by semicolons, including references to symbol servers.
-FullOnFirst
Chooses to have full dumps created on first chance for all defined exceptions. The default behavior is to have minidumps created on first chance. If several first-chance exceptions of the same type happens, the dump files will be overwritten. If you desire another type of behavior you can use the configuration file for additional options.
-MiniOnSecond
Chooses to have mini dumps created on second chance for all defined exceptions. The default behavior is to have full-dumps created on second chance.
-NoDumpOnFirst
Chooses to have no dumps created on first chance for all defined exceptions. The default behavior is to have mini-dumps created on first chance.
-NoDumpOnSecond
Chooses to have no dumps created on second chance for all defined exceptions. The default behavior is to have full-dumps created on second chance.
-NoTlist
If used, ADPlus will not use the TList tool to get the list of running processes. This option should be used only if you are experiencing problems with ADPlus that are related to the TList tool.

If -NoTlist is used, you cannot use the -pn switch. In addition, the dump file names will not include the package name for COM+ applications.

-NoTsCheck
Allows ADPlus to attach to a target in a Terminal Server session, as long as the target was started in the same session as ADPlus. This switch is only needed in Windows 2000 and earlier; if it is not included in those operating systems ADPlus will not be able to use ADPlus in a Terminal Server session. In Windows XP and later versions of Windows, ADPlus can freely attach to targets in Terminal Server, regardless of what session they were started on, and this switch is not needed.
-dbg Debugger
Allows you to select the debugger to be used. The default is CDB, but you can select WinDbg or NTSD instead. Debugger should include the debugger name and the .exe extension.
-Help
Displays help text for ADPlus.

可参考:support.microsoft.com/kb/286350/zh-cn

小米MIUI 12免REC解锁Root:Magisk Manager与Fastboot实战指南 本文详细介绍了小米MIUI 12免REC解锁Root的完整流程,涵盖Magisk Manager与Fastboot的实战操作。从解锁前的准备工作到提取boot.img、Magisk修补技巧,再到Fastboot刷入全流程,提供了常见问题解决方案和进阶优化建议,帮助用户安全高效地获取Root权限。 阅读详情

相关推荐

一种基于因果干预的少样本学习的故障诊断模型

本文提出CIRNet,一种融合元学习与因果干预的少样本故障诊断框架。针对传统方法易学习伪相关特征的问题,CIRNet通过构建结构因果模型,采用类级和特征级双调整策略消除先验知识干扰。实验在多个轴承/齿轮数据集上验证其有效性,在跨组件任务中准确率最高达93.41%,特征可视化显示更好的类可分性。相比现有方法,CIRNet显著提升了模型泛化能力和可解释性。

hasakie的博客 957

Adplus,抓取dump的方便工具

Adplus是跟Windbg在同一个目录的VBS脚本。Adplus主要是用来抓取dump文件。 详细的信息,可以参考Windbg帮助文件中关于adplus的帮助。有下面一些常见用法:假设我们的目标程序是test.exe:假设test.exe运行一段时间崩溃,在test.exe启动后崩溃前的这个时间段,运行下面的命令监视:  Adplus –crash –pn tes

Steven Lei的博客 2652

unity C# 计算3D空间任意多边形面积,距离,角度测量工具

unity C# 计算3D空间任意多边形面积,距离,角度 using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using System; /// /// 划线面积,距离,角度 /// public class UnderlinedMeasureTool : MonoBehaviour { /// /// 相机 /// public Camera _c

qq_22972867的博客 2225

如何使用 ADPlus 解决“挂起”和“崩溃”问题

概要ADPlus 是 Microsoft 产品支持服务 (PSS) 提供的一个工具,它可以解决停止响应(挂起)或失败(崩溃)的任何进程或应用程序的问题。ADPlu... ADPlus 是 Microsoft 产品支持服务 (PSS) 提供 的一个工具,它可以解决停止响应(挂起)或失败(崩溃)的任何进程或应用程序的问题。ADPlus (ADPlus.vbs) 通常可以用作 Microsoft Int...

weixin_33857230的博客 359

相机中的归一化实现讲解

本分讲解了图像处理中常出现的两个相机归一化操作

weixin_42102084的博客 1476

接口调试必看:status显示canceled的3种常见原因及修复方法

本文深度解析了接口调试中status显示canceled的三种核心原因:网络层中断(如请求超时)、应用层逻辑主动取消(如请求竞态、组件卸载)以及用户交互与浏览器行为。文章提供了从诊断到修复的系统性方案,包括分析Network Timing、使用Axios CancelToken、优化请求策略与性能,帮助开发者从根本上解决这一常见问题。

bb456的博客 938

WinDbg基础(3)Adplus参数设置

DPlus是如何工作的? ================ ADPlus 具有两种操作模式: “Hang”模式用于解决进程挂起、100% CPU 使用率以及不涉及崩溃的其他问题。当您在挂起模式下使用 ADPlus 时,在运行脚本之前必须等待,直到进程停止响应(与崩溃模式不同,挂起模式不是持久性的)。“Crash”模式用于解决 Dr. Watson 错误导致的崩溃问题,或者用于解决

zyx_hawk的专栏 1296

ffmpeg(一) ffmpeg+QT开发环境搭建

(exe 程序编译的时候只需要包含 xxx.dll.a 静态导入库,运行的时候才需要 xxx.dll 文件)这个 .pro 文件的配置,是指导程序编译的时候,可以找到对应的动态库。值得一提的是,在Windows中,静态链接库(Static Link Library)的扩展名也是.lib、.dll.a。其实只要你掌握了FFmpeg,也可以很快上手其他音视频开发库,因为底层原理都是一样的,你最终操作的都是一样的数据,比如MP3、MP4文件。导入库:不包含函数的具体实现代码(函数的具体实现代码存储在dll中)

小道士写程序 8207

drwtsn32简介

原文地址 前言:对于Debug模式程序的调试,大家都比较熟悉。但对于Release模式下程序异常崩溃,很多程序员束手无策。其实,Release模式的发布程序,通过一些方法也可以获取程序崩溃时的堆栈信息,并可以生成Dump文件。此后的几篇文章将介绍这些方法。这些方法大多为网络上查找的,本人只是做一个总结。文章从基础开始谈起,没有任何Release除错经验的人也可以完全看明白。 本文将

沧海一粟 1842

第五节 Amesim《直动型溢流阀HCD建模》HCD5 学习资料

利用HCD原则创建直动型溢流阀的界面。这可能包括图形化表示直动型溢流阀的工作原理、操作方式和调节方法。这样的界面应当直观且易于理解,使用户能够轻松了解阀门的功能和使用方法。

m0_58052642的博客 1330

win2016 php mysql_Windows Server 2016 IIS10.0+PHP(FastCGI)+MySQL环境搭建教程 | 系统运维...

准备篇一、环境说明:操作系统:Windows Server 2016PHP版本:php 7.1.0MySQL版本:MySQL 5.7.17.0二、相关软件下载:1、PHP下载地址:2、MySQL下载地址:3、Microsoft Visual C++ 2010 可再发行组件包(安装MySQL需要此插件)4、Visual C++ Redistributable for Visual Studio 20...

weixin_34794420的博客 1378

drwtsn32错误

WindowsXP系统在个别情况下,会在关闭程序或程序出错是会出现drwtsn32错误报错的情况,这种情况下系统会有1~2个相应进程出现,在结束这些进程前,系统会程假死状态,无法操作。只有关闭进程才能正常使用。 这种情况是由于WindowsXP系统自带的Dr. Watson程序造成的,这是一个系统自带的程序错误调试器。主要用途是当程序出错时生成一个报告文件以便技术人员确定问题...

weixin_33827731的博客 382

YOLO26涨点改进 | Conv篇/小目标改进 | AAAI 2025 FBRT-YOLO 两个轻量级FCM和MKP模块, 助力无人机航拍任务VisDrone、UAVDT和AI-TOD高效涨点

本文提出FBRT-YOLO26模型,通过引入两个轻量级模块FCM和MKP优化航拍图像检测性能。FCM模块通过特征互补映射解决小目标信息丢失问题,MKP模块利用多尺度卷积核增强目标感知能力。在VisDrone等数据集上的实验表明,该方法在精度和速度上均优于现有实时检测器。文章详细介绍了模块结构、核心代码实现及YAML配置文件修改方法,为航拍图像中的小目标检测提供了高效解决方案。该模型实现了检测精度与效率的良好平衡,具有实际应用价值。

Ai缝合怪、助力小伙伴高效发论文 369

抓取dump文件

抓取user mode dump文件的几重境界 导读 记得去年对一些朋友说过要写一些调试技术相关的文章,但是后来出于种种原因吧,还是没写成。最近终于有些时间,希望可以把这些文章补上。对于软件开发而言,调试无疑是最重要的部分之一,而对于windows 系统而言,dump文件无疑是问题发生时最全面的信息,对于一些问题而言,在对的时候抓取对的.dump文件基本上就相当于解决了一大半的问题。本文由

cslovers的专栏 1200

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

windows命令行调试器+进程转储工具

文章目录工具介绍适用场景工具获取用法示例命令行语法脚本配置Settings 部分Exceptions 部分Breakpoints 部分参考文档 工具介绍 CDB.exe 及 ADPlus.exe 在 WinDbg.exe 同目录下; CDB.exe 是 Windows 控制台调试器,不具有图形用户界面; ADPlus.exe 自动化了 CDB.exe 的调试操作; ADPlus.exe 可以部署在生产环境,对性能几乎无影响; ADPlus.exe 可以根据配置自动生成内存转储和日志文件。 监视异常类型:

随心动,随风行 1359

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

ADPlus

什么是ADPlus? =============== ADPlus是一个Microsoft Product Support Services (PSS) 的工具, 可以用来排查任何进程或者应用程序的停止响应(hang), 或者崩溃(crash)的错误. 经常地, 你可以使用ADPlus(ADPlus.vbs)作为Microsoft Internet Information Server (IIS)...

weixin_33811539的博客 276

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

使用Adplus抓取Dump小结

转自:http://hi.baidu.com/ju_feng/blog/item/564f0439f133d7fa3a87cebe.html Adplus抓取Dump有三种方式: 一种是Hang模式adplus -hang -pn Prs.exe -o c:/dump -quit /2/当进程进程运行时生成dump  二是Crash模式adplus -crash

shellching的专栏 6002

adplus 抓取dmp文件

ADPlus是一个Microsoft Product Support Services (PSS) 的工具, 可以用来排查任何进程或者应用程序的停止响应(hang), 或者崩溃(crash)的错误. 经常地, 你可以使用ADPlus(ADPlus.vbs)作为Microsoft Internet Information Server (IIS) Exception Monitor 和 User M

追梦人 1421

如何利用adplus来dump某个process的memory

<br /><br />前面提到了dump文件能保存进程状态,方便分析。由于dump文件记录的是进程某一时刻的具体信息,所以保存dump的时机非常重要。比如程序崩溃,dump应该选在引发崩溃的指令执行时(也就是1st chance exception发生的时候)获取,这样分析dump的时候就能够看到问题的直接原因。<br />Adplus是跟Windbg在同一个目录的VBS脚本。Adplus主要是用来抓取dump文件。 详细的信息,可以参考Windbg帮助文件中关于adplus的帮助。有下面一些常见

keilsi的专栏 2634

XP下软件崩溃,adplus抓取Dump方法

我公司开发的软件在XP平台下屡次崩溃,最近更新了依然没有解决,故使用windows调试工具进行dump抓取分析原因 工具: dbg_x86_Tools_for_windows  微软说明文档 https://support.microsoft.com/zh-cn/kb/286350 默认安装 dbg_x86_Tools_for_windows  打开cmd  切换到  C

cxfuxi的博客 538

adplus处理进程崩溃和界面卡住

adplus处理进程崩溃和界面卡住 windbg里面有个adplus工具,可以实时跟踪进程,在进程崩溃的时候,在指定位置产生dump文件,以此进行崩溃分析。 命令为: adplus.exe -p 8940 -crash -FullOnFirst -o e:\dump 其中-p后面的8940是要跟踪的进程,e:\dump是dump文件的位置,如下所示: 当然也可以根据程序文件名进行跟踪,命令如下。 adplus.exe -pn CrashTest.exe -crash -FullOnFirst -o e:\

tusong86的博客 744

使用adplus抓取dump文件

win10系统 32位程序,先打开cmd cd C:\Program Files (x86)\Windows Kits\10\Debuggers\x86 adplus.exe -crash -pn test_32.exe -o "c:\temp" -quiet crash程序崩溃,生成dump文件 c:\temp生成dump文件路径

波波诸葛伟 425

drwtsn32.exe 是什么?drwtsn32.exe遇到问题需要关闭?

<br />出现drwtsn32.exe这个问题,一般都是全新安装的系统,才会出现drwtsn32.exe遇到问题需要关闭。很郁闷,已经好多次了,今天把这个话题列出来,讨论一下。drwtsn32.exe是windows的一项磁盘检查程序,同时也是鸡肋程序,最好的办法是将它禁用: <br />关闭Dr.Watson:在"开始"-"运行"中输入"drwtsn32"命令,调出系统里的Dr.Watson ,只保留"转储全部线程上下文"选项,否则一旦程序出错,硬盘会读很久,并占用大量空间。很多时候就是我们常见到的死机

qinqqfirst的专栏 1704

window系统环境下使用adplus抓取dump方法

window系统环境下使用adplus抓取dump方法 下载安装dbg_amd64.msi 打开C:\Windows\System32,找到cmd.exe,右键-以管理员身份运行 在命令窗口中切换到步骤1安装目录 输入命令:adplus.exe -crash -pn 进程名 -o dump文件输出目录 回车执行,会弹出另外一个cdb.exe 命令框,如果进程异常挂死该命令框自动关闭,并将挂死信息写入步骤4设置的输出目录 以上 ...

qq_25478569的博客 626

drwtsn32 调试windows程序

一直忙着调试代码,写服务器的代码,有时候真叫人郁闷,郁闷的是要高性能的保持程序继续运行n多天还没有事情,本来这也是程序员该做的事情,但是有时候一些长期积累下来的问题会造成程序指明性的打击~~~在写这个程序的时候,本机调试代码的时候都没有遇到任何内存泄漏的问题,调试的时候都很清晰,但是到客户那里运行一天到两天就没名的挂掉,真让人郁闷而且没有任何报错~~无奈,打开了drwtsn32来检测程

OpenHero 开勇 3325

打开网页中提示: drwtsn32.exe-应用程序错误-解决方法_陕南赤子_新浪博客

打开网页中提示: drwtsn32.exe-应用程序错误 应用程序发生异常 未知的软件异常(0XC0000409),位置0X68D7295D。 解决方案: 1、运行"中输入"drwtsn32"命令,或者"开始"-&gt;"程序"-&gt;"附件"-&gt;"系统工具"-&gt;" 系统信息"-&gt;"工

allen88的专栏 1756
上一篇: 如何分析堆栈出错的 dmp 文件
下一篇: 使用Adplus抓取Dump小结
UU_Yang
博客等级 码龄23年 926粉丝 213原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值