Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Find loop where iteration *lock up* Date: Tue, 19 May 2015 01:20:09 +0100 Organization: A noiseless patient Spider Lines: 35 Message-ID: <87y4klju4m.fsf@bsb.me.uk> References: <2be4ebc1-2b4f-4743-9009-f3136580289d@googlegroups.com> <11cf284d-7d4d-496b-a104-b8e4c00f2339@googlegroups.com> <6334a69b-22e4-408b-a7f6-1db54b1118e9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="1752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187I5/W4WGIrMS9iMK5Xf9kGO76+Dz4bP8=" Cancel-Lock: sha1:DKDsoQhkbvz4DC5Z3Ank9rRCVGc= sha1:V/acRdZHxrbDx5GW0oGzfmHppqY= X-BSB-Auth: 1.4832d847c0959f105187.20150519012009BST.87y4klju4m.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27749 jonas.thornvall@gmail.com writes: > Den tisdag 19 maj 2015 kl. 00:40:33 UTC+2 skrev jonas.t...@gmail.com: >> Den tisdag 19 maj 2015 kl. 00:19:02 UTC+2 skrev jonas.t...@gmail.com: >> > Den måndag 18 maj 2015 kl. 23:53:56 UTC+2 skrev Michael Haufe (TNO): >> > > On Monday, May 18, 2015 at 3:34:31 PM UTC-5, jonas.t...@gmail.com wrote: >> > > > Is there a way to trace where an iteration do lockup in a javascript? >> > > > Could they not printout the row executed when you break script? >> > > >> > > In the Firefox debugger you can tell it to pause on >> > > exceptions. I suspect the other popular browsers support this >> > > functionality as well. >> > >> > I just implemented a counter, and get strange maybe even impossible result. >> > >> > I use base 11 and start to convert from 0 using a counter. >> > >> > But the program decides to loop at different numbers at different >> > executions, is that even possible? >> > >> > Javascript is not threaded, it is linear execution? >> >> It do bug out at 29 ones or nines. But when i use a counter it can >> bug out on any number between 117-1000 > > If i just could find the smallest number it bugs out for in base 11. > But the counter approach does not work because it locks up on > different numbers different execution which to me is ape weird. Your code has reached the point where it is no longer comprehensible even to you, its author. I think you need to spend a portion of the time on this project to learning how to program. -- Ben.