I have a method called MyTrace. This contains just a TRACE command. If I need to insert a "hard" trace I call MyTrace. Then the TRACE can be commented out when not needed.
On Thu, 7 Oct 2021 at 09:58, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Le 6 oct. 2021 à 22:43, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> > a écrit : > > > > Randy, hi there. > > [...] But that is a problem when you only want to stop and trace the > first iteration of a loop. Then you have to restart 4D. > > Hi Keith, > you may use assert: > for ($i;1;...) > assert($i#1;"stop on first iteration only") > end for > > Another cool thing with assert is you can alt+clic on the "Continue" > button in the dialog; it means "ignore all comming false asserts for this > process". I tend to use ASSERT much more than TRACE or breakpoints, since a > while. > > -- > Arnaud de Montard > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > New Forum: https://discuss.4D.com > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************