【问题标题】:how can I run adplus in crash mode but not have it write a dump on shutdown?如何在崩溃模式下运行 adplus 但在关机时不写入转储?
【发布时间】:2012-05-29 18:46:51
【问题描述】:

如果我跑步:

adplus.exe -pmn "MyClient.exe" -o "d:\DumpFiles" -crash

当我关闭时,我会创建一个转储文件:

FULLDUMP_FirstChance_epr_Process_Shut_Down_MyClient.EXE__333c_2012-05-29_14-29-04-654_2690

有没有办法在崩溃模式下运行 adplus 但不创建这个 Process_Shut_Down 转储? (或者这是否意味着关闭期间出现异常?)

我想监视我的应用程序是否存在运行时异常,但不想在程序正常退出时填满硬盘。

【问题讨论】:

    标签: adplus


    【解决方案1】:

    运行adplus时可以指定配置文件:

    这是我文件的内容:D:\DumpFiles\conf.txt

    <ADPlus Version='2'>
      <Exceptions>  
            <Exception Code="epr">
                <Actions1>Void</Actions1>
                <Actions2>Void</Actions2>
            </Exception> 
       </Exceptions>
    </ADPlus>
    

    现在我们可以运行:adplus.exe -c D:\DumpFiles\conf.txt -pmn notepad++ -crash -o "D:\DumpFiles"

    使用配置文件解决了这个问题,adplus 似乎很聪明,只是应用这个“epr”例外规则作为唯一的区别。我使用 WinMerge 比较了生成的“DebuggerScript.txt”文件。

    注意:如果您使用此配置文件运行 taskkill notepad++,则不会得到转储。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多