如果我跑:
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转储? (或者这是否意味着在关机期间有例外?)
我想监视我的应用程序是否存在运行时异常但是如果程序正常退出则不想填满硬盘驱动器。
答案 0 :(得分: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&#34; D:\ DumpFiles&#34;
使用配置文件修复了这个问题,adplus似乎足够智能,只需应用此“epr”例外规则作为唯一的区别。我使用WinMerge来比较生成的“DebuggerScript.txt”文件。
注意:如果你使用notepad ++ taskkill,那么如果你运行这个配置文件,你就不会获得转储。