Debugging Tools for Windows |
The following sample shows you how to configure ADPlus for conditional breakpoints.
<!--
Configuring ADPlus to create a conditional breakpoint
When using j we need to include the "g" command into each branch due to its special syntax
with j everything after the two branches is ignored
For this reason we need to use VOID in ReturnAction
Note - when using j commands with breakpoints it may be more convenient to use gc instead of g
if you plan to do live debug; see documentation for gc in debugger.chm
-->
<!-- defining breakpoints -->
<Breakpoints>
<NewBP>
<Address> mscorsvr!RaiseTheException </Address>
<Type> BU </Type>
<Actions> VOID </Actions>
<CustomActions> j (poi(poi(poi(poi(esp+4))+8)+48) = 02000004) '.time;du poi((poi(esp+4)+10))+c;.dump /u /mfh d:\dumps\Insite.dmp;gc';'.time;du poi((poi(esp+4)+10))+c;gc'</CustomActions>
<ReturnAction> VOID </ReturnAction>
</NewBP>
</Breakpoints>
</ADPlus>