lol -- I had to look at the post date myself, 
I was thinking "...when did I post that?!?!?"

what I have taken to doing is using the runtime explorer in the 
'Catch' tab (stop sign)
and setting a formula in there (evaluation to TRUE stops execution)

I *WISH*  that you could copy/paste into the formula...

On Tue, 18 Sep 2018 15:18:41 -0400, Jim Hays via 4D_Tech wrote:
> Hmmm - replying to a 2 year old message.  (But it was worth reading!)
> 
> Jim
> 
> On Tue, Sep 18, 2018 at 3:14 PM Jim Hays <[email protected]> wrote:
> 
>> Wow - I completely forgot about that.  (right-click and edit the break
>> point formula)
>> Used to use it all the time, but it stopped working in 4D 2004 (I think).
>> It was _super_ useful.
>> Or maybe it would lose the formula if you re-opened it.
>> Seems to be working in v16R6 (Windows).
>> 
>> Thanks Chip!
>> 
>> Jim
>> 
>> 
>> On Tue, Nov 22, 2016 at 2:23 PM Chip Scheide <[email protected]>
>> wrote:
>> 
>>> 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]
>>> **********************************************************************
>> 
>> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to