incorrect selectedChunk data

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

monki
Posts: 59
Joined: Tue Dec 13, 2011 10:56 pm

Re: incorrect selectedChunk data

Post by monki » Sun Dec 11, 2016 10:02 pm

jacque wrote:
But the selectedChunk thing has something to do with setting the breakpoints. If I set breakpoints and look at the variables selectedChunk and selectedLine, odd numbers are returned.
Right. That's because when you break into the script editor, the selected field is the script. You are no longer measuring the field you think you are. If you set a breakpoint after the measurement you should see what you expect.
That's what I suspected, after the fact. I didn't think the debugging tool worked that way. Something to keep in mind for the future.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: incorrect selectedChunk data

Post by dunbarx » Sun Dec 11, 2016 10:21 pm

I didn't think the debugging tool worked that way.
Just a stack, right?

Craig

Post Reply