1834397 Members
2357 Online
110067 Solutions
New Discussion

DDE

 
Cody Godines_1
Occasional Advisor

DDE

Does anyone know the syntax to stop or pause program execution when a variable gets to be a certain value using dde? Yes, I did rtfm, but didn't come across anything about this. Where did I miss the info, please tell me so I can slap myself upside the head.
1 REPLY 1
Oren_3
Occasional Contributor

Re: DDE

HI.
you can use breakpoints to stop dde whenever your variable equals to a certain value.
you can look for help in the hp technical documentation on softbench software.
for refferances:
http://docs.hp.com/hpux/onlinedocs/B6454-97413/00/00/68-con.html

i have also copyed the relevant section:

Executing DDE Commands at a Breakpoint:

You can have SoftBench Debugger execute a debugger command whenever it stops at a breakpoint. When you create or modify a breakpoint using the "Breakpoint Set/Change" dialog box:

Enter the desired debugger command in the "Commands" input box. See "Help: DDE Reference" for more information on these commands.

Enter a number in the "Stop After Count" input box to specify the number of times you want your program to ignore the breakpoint before it stops and executes the commands. The "Hits" field tells how many times the breakpoint has already been encountered. "Count" defaults to 0, meaning SoftBench Debugger stops on the first encounter.

Select OK. If you select Cancel, SoftBench Debugger discards the command entered in the input box, and does not modify the breakpoint.
For example, if you are sure an error happens on the 53rd time through a loop, you could set a breakpoint in the loop and enter 52 in the "Stop After Count" input box.

If the error happens only when the variable x is 14, you could enter "print x; if x != 14 -then [go]" in the "Commands" input box. This prints the value of x each time SoftBench Debugger encounters the breakpoint, but does not stop until x reaches the critical value. You may also want to make the breakpoint Silent so the breakpoint notification message does not print each time the breakpoint is encountered.

Hoping this helped you...
Oren.