you can, in the debugger, set a conditional break point this causes a break based on some formula/equation
if you create a break point, THEN option/alt click on the break point, you will get a dialog to enter a formula. I have no had much success in getting this to work the way I expect so... YMMV Chip On Tue, 22 Nov 2016 19:11:42 +0000, Pat Bensky wrote: > Ah, right, yes I've used that method before - nice to know it's called a > gate! (makes sense). I thought I'd read somewhere, sometime in the past, > that there was a way to flag changes like that in the Debugger. I guess I > must have dreamed it :) > > On 22 November 2016 at 17:11, Douglas von Roeder <[email protected]> > wrote: > >> Pat: >> >> Create a method Module_Var_Set and a matching Module_Var_Get, each with the >> appropriate code. In this case, since you're trying to trap the change, >> you'll have to add code to the setter a la >> >> If($newValue#<processvariable>) >> Trace >> End if >> >> >> Do a Find in design for ":=VariableName" and do a Replace operation with >> the _Get method. >> >> Do another Find in design for "VariableName:=" and Replace with the _Set >> >> Put a break point in the _Set and run your code. >> >> >> >> -- >> Douglas von Roeder >> 949-336-2902 >> >> On Tue, Nov 22, 2016 at 8:54 AM, Pat Bensky <[email protected]> wrote: >> >>> Hi Chip, >>> Yes, that'll work. But what if the variable changes again? For example, >>> suppose I have a text variable named MyTextVariable. It gets some text >>> assigned to it. Then, later on, it might get more text appended to it. >> And >>> maybe more later on, etc., depending upon certain factors. So I want to >> be >>> alerted whenever the value of that variable changes. >>> >>> Pat >>> >>> On 22 November 2016 at 16:38, Chip Scheide <[email protected]> >>> wrote: >>> >>>> >>>> use Run time explorer >>>> 'Catch' tab/icon/button >>>> >>>> enter an expression such as A = 6 >>>> When it becomes true the debugger will stop. >>>> >>>> TO catch when a field or variable changes, use that object's >>>> current/initial value >>>> ex: >>>> [table]field1 # !00/00/00! >>>> >>>> then when field1 is assigned a date the program will halt and the >>>> debugger will open on(?) or on the next(?) line of code >>>> >>>> On Tue, 22 Nov 2016 15:51:18 +0000, Pat Bensky wrote: >>>>> is there a way to create an expression in the debugger that will >> catch >>>>> whenever the value of a variable changes? >>>>> >>>>> Pat >>>>> >>>>> -- >>>>> ************************************************* >>>>> CatBase - The Database Publishing Solution >>>>> tel: +44 (0) 207 118 7889 >>>>> w: http://www.catbase.com >>>>> skype: pat.bensky >>>>> ************************************************* >>>>> ************************************************************ >> ********** >>>>> 4D Internet Users Group (4D iNUG) >>>>> FAQ: http://lists.4d.com/faqnug.html >>>>> Archive: http://lists.4d.com/archives.html >>>>> Options: http://lists.4d.com/mailman/options/4d_tech >>>>> Unsub: mailto:[email protected] >>>>> ************************************************************ >> ********** >>>> ********************************************************************** >>>> 4D Internet Users Group (4D iNUG) >>>> FAQ: http://lists.4d.com/faqnug.html >>>> Archive: http://lists.4d.com/archives.html >>>> Options: http://lists.4d.com/mailman/options/4d_tech >>>> Unsub: mailto:[email protected] >>>> ********************************************************************** >>> >>> >>> >>> >>> -- >>> ************************************************* >>> CatBase - The Database Publishing Solution >>> tel: +44 (0) 207 118 7889 >>> w: http://www.catbase.com >>> skype: pat.bensky >>> ************************************************* >>> ********************************************************************** >>> 4D Internet Users Group (4D iNUG) >>> FAQ: http://lists.4d.com/faqnug.html >>> Archive: http://lists.4d.com/archives.html >>> Options: http://lists.4d.com/mailman/options/4d_tech >>> Unsub: mailto:[email protected] >>> ********************************************************************** >>> >> ********************************************************************** >> 4D Internet Users Group (4D iNUG) >> FAQ: http://lists.4d.com/faqnug.html >> Archive: http://lists.4d.com/archives.html >> Options: http://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:[email protected] >> ********************************************************************** >> > > > > -- > ************************************************* > CatBase - The Database Publishing Solution > tel: +44 (0) 207 118 7889 > w: http://www.catbase.com > skype: pat.bensky > ************************************************* > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

