Strange behavior of the IDE?

Graham Samuel livfoss at mac.com
Thu Feb 27 16:06:55 EST 2014


Pete, thanks for the quick reply. Neither of those things work for me. There is even odder stuff: if I put breakpoints in earlier code and click through that code to the point where the breakpoints stop working, then the 'strange' code is executed, although it doesn't stop at its own breakpoints. If I just let the program run, by clicking on the 'run' triangle every time it reaches a working breakpoint, the code in the problematic section isn't executed, or not all of it - for example I have become sufficiently desperate to introduce a simple logging function that puts lines of text into a field. In the 'just run it' case, the log doesn't show, and in the other case, I get log entries. This is all extremely strange. I've tried quitting and restarting etc but so far nothing has worked. Reluctantly I will try to report it as a bug.

Graham

On 27 Feb 2014, at 21:33, Peter Haworth <pete at lcsql.com> wrote:

> I've experienced this from time to time and it's very frustrating.
> 
> Have you tried inserting a "breakpoint" command at the start of your
> function rather than a "red dot" breakpoint?
> 
> I've sometimes found that the statement following the breakpoint is somehow
> syntactically incorrect in a way that isn't caught during compile, which
> seems to cause LC to just give up.  Sorry to be so vague but I can't
> remember the exact details.
> 
> On another occasion, I ended up putting a lock messages command in my code
> (when I was in "try anything" mode) which fixed the problem, but I have no
> idea why.
> 
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Thu, Feb 27, 2014 at 11:03 AM, Graham Samuel <livfoss at mac.com> wrote:
> 
>> I'm trying to debug a sequence of code with some repeat loops and stuff in
>> it. I'm using LC 6.5.2 on Apple Mavericks 10.9.1 - but I've just tested
>> this on a far older version of LC (5.5.4) and I get the same problem:
>> 
>> I have put a number of breakpoints in the code, and when I start executing
>> it, the breakpoints do indeed stop the code running as expected. But then I
>> come to a point where the code seems to rush ahead, taking no notice of the
>> breakpoints. Specifically, I start tracing before calling a certain
>> function with this statement
>> 
>> put myFunction(myParameter) into field "myField"
>> 
>> The first line of the function has a breakpoint in it, but as soon as
>> execution moves to the function, none of the breakpoints within it apply.
>> It's as if I'd clicked on the 'step over' button in the IDE instead of the
>> 'step into', but I haven't. This is entirely repeatable. What did I do
>> wrong? I suppose it may be a bug, but I rather dread cutting it down to a
>> simple example. Has anyone any idea what is causing this?
>> 
>> TIA
>> 
>> Graham
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list