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

MR2数据集实战:5步搞定多模态谣言检测模型训练(附完整代码) 本文详细介绍了如何使用MR2多模态数据集构建高精度谣言检测系统,涵盖环境配置、数据准备、多模态特征工程、模型架构设计、训练调优及部署优化等5个关键步骤。通过双线性融合技术处理文本、图像和网页三模态数据,解决特征对齐和模态冲突等工程难题,并提供完整代码实现和性能优化方案。 阅读详情

相关推荐

快速理解OSI七层模型(举例理解,数据传输过程,深入理解OSI七层模型)

我们需要了解互联网的本质是一系列的网络协议,这个协议就叫做OSI协议(开放系统互联(Open System Interconnection)),它是由ISO(国际标准化组织)定义的。 需要注意,随着时代的发展,OSI已经被TCP/IP 4层模型淘汰,在当今世界上并没有大规模的使用。 那么对于OSI,人们按照功能不同,分工不同,人为的将OSI的分为七层。实际上这七层是并不存在的,也就是说没有这些概念,而我们今天提到的七层概念,只是人为的划分而已。目的只是为了让大家更好地理解这些都是用来做什么的。

CN_TangZheng的博客 3万+

Adplus,抓取dump的方便工具

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

Steven Lei的博客 2652

NVIDIA NCCL 安装和测试实战教程

ibrary)是用于深度学习应用的高性能通信库,可加速多GPU通信和同步。它能够在多个GPU之间进行高效的数据传输和集体操作,显著提高了分布式GPU系统上深度学习训练和推理的性能。NVIDIA NCCL是加速多GPU系统上深度学习应用的必不可少的工具。其高效的通信原语和集体操作显著提高了分布式训练和推理的性能,使其成为现代深度学习基础架构的关键组成部分。

weixin_39818775的博客 4436

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

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

weixin_33857230的博客 359

Fast DDS源代码走读

DDS, PDP, EPD, DataWriter, DataReader

weixin_43082062的博客 720

《Kubernetes部署篇:基于x86_64+aarch64架构CPU+containerd一键离线部署容器版K8S1.33.3高可用集群》

《Kubernetes部署篇:基于x86_64+aarch64架构CPU+containerd一键离线部署容器版K8S1.33.3高可用集群》

东城绝神 1374

WinDbg基础(3)Adplus参数设置

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

zyx_hawk的专栏 1298

C++控制台实现简单的注册登录

C++控制台实现简单的注册登录 #include<iostream> #include<string> #include <vector> #include <conio.h> void Display();//调用display显示switch()界面 void Register();//注册 void Enter();//登录 using nam...

乔路非 2万+

drwtsn32简介

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

沧海一粟 1842

手把手教你使用 YOLOv11/v8 算法 + PaddleOCR 算法完成车牌检测和车牌识别系统,AI智能体,毛玻璃系统,包括PaddlePaddle安装、数据集预处理、模型训练、AI大模型应用等

手把手教你使用 YOLOv11/v8算法 + PaddleOCR算法完成车牌检测和车牌识别系统,AI智能体,毛玻璃系统,包括PaddlePaddle安装、数据集预处理、模型训练、AI大模型应用等。车牌识别系统支持 蓝牌、绿牌、黄牌、双层车牌等车牌识别。

在职AI算法工程师,擅长计算机视觉,YOLO目标检测、分割等,擅长web、pyqt界面可视化,好内容持续更新中,来这里跟大家一起学习,共同进步 2803

ABAP Secure Storage 在事务码 SM59 中的应用

系统管理人员在进行维护时,应关注相关日志信息,及时发现可能出现的安全异常,并针对不同安全等级的操作制定相应的备份与恢复策略,以降低潜在风险。该区域在设计上具备高度隔离性,仅允许经过授权的组件访问。保存后,系统会将密码存储在 Secure Storage 中,这种处理方式充分体现了 SAP 标准程序在安全设计上的考量。对于系统管理员而言,这种机制在日常维护与审计中提供了有力的支持,可以通过比对存储数据的哈希值或其他完整性校验手段,及时发现异常变动,保障系统长期稳定运行。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 695

drwtsn32错误

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

weixin_33827731的博客 383

YOLOv13必学核心:SKAttention选择性核注意力机制原理 + 实战全拆解

SKAttention的核心思想来源于人类视觉系统的一个重要特性:根据不同的视觉刺激,人眼能够自适应地调整感受野大小。SKAttention将这一生物学原理转化为深度学习中的注意力机制,通过动态选择和融合不同大小的卷积核,实现了自适应的多尺度特征提取。在人类视觉皮层中,不同的神经元具有不同大小的感受野,而且这些感受野的大小会根据视觉刺激的类型动态调整。本文将深入解析SKAttention模块的设计原理、数学基础、实现细节,以及其在YOLOv13目标检测框架中的集成应用,为读者提供全面而深入的技术理解。

FJN110的博客 99

抓取dump文件

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

cslovers的专栏 1201

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

Statistics and Machine Learning Toolbox

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

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

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

随心动,随风行 1360

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

ADPlus

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

weixin_33811539的博客 277

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抓取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的博客 745

使用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文件路径

波波诸葛伟 426

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

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

qinqqfirst的专栏 1706

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的专栏 1757
上一篇: 如何分析堆栈出错的 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、付费专栏及课程。

余额充值
⌂ 换网址