06-16-2011 04:18 PM
I am writing an application that will require me to break on fail but only if certain conditions apply after login. I have looked through a lot of the material online and in the help file and cannot seem to get it working or find an good solution. Can anyone help?
06-17-2011 07:10 PM
Tyler,
For all the love you've given me in the past. Here is an example in 2010.
You can read about it in the TS help but the keys are this:
Locals.MyWatchExp = RunState.Engine.GetWatchExpressions(Nothing, Nothing,0).Insert(Nothing) will set Locals.MyWatchExp to the new Watch Expression
Now you can start setting the properties:
Locals.MyWatchExp.AsWatchExpression.Expression = "Locals.Foo",
Locals.MyWatchExp.AsWatchExpression.BreakpointType = 0x1
Then change Foo and away you go.
Cheers,