A debugger too obedient
Posted: Mon Jun 13, 2016 12:34 am
Lets suppose I have a list field with multiple lines, p. eg.
RINGO
GEORGE
JOHN
PAUL
And his his script is:
on mouseup
put the selectedtext into theSel
end mouseup
Well. Now, to check its operation, I put a breakpoint at the beginning of the code (on mouse up)
If I go to the field and click, p. eg. the second line, the debugguer is activated and when it reaches the end (end mouseUp), the variable theSel does not show 'GEORGE' as is expected.
What it shows is: "put the selectedtext into theSel".
Curious! I guess it's because the LiveCode debugguer had just select this line as a visual aid for monitoring debug.
RINGO
GEORGE
JOHN
PAUL
And his his script is:
on mouseup
put the selectedtext into theSel
end mouseup
Well. Now, to check its operation, I put a breakpoint at the beginning of the code (on mouse up)
If I go to the field and click, p. eg. the second line, the debugguer is activated and when it reaches the end (end mouseUp), the variable theSel does not show 'GEORGE' as is expected.
What it shows is: "put the selectedtext into theSel".
Curious! I guess it's because the LiveCode debugguer had just select this line as a visual aid for monitoring debug.