You know, I was just being silly. But it is obvious that changing the name of an existing long-time LC construct is never a good idea. I take it back.No, please team, don't listen to Craig. It would break my apps.
Craig
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
You know, I was just being silly. But it is obvious that changing the name of an existing long-time LC construct is never a good idea. I take it back.No, please team, don't listen to Craig. It would break my apps.
Hi Craig,
Ah. A red dot, right?3. set a breakpoint
For me I can comment out a "breakpoint" and still have a "breadcrumb" that says "this was a tricky part to get right" (usually I am using breakpoints or their alternatives at a point in the program where the expected result is not happening!!!). When you uncheck the red dot that history is lost. Not a critical thing for every developer, but if you want to use the code as an example it's a helpful reminder of where the challenges were (also a humble reminder of just how often we screw up LoL).dunbarx wrote: ↑Sun Aug 07, 2022 5:52 pmThe red dots are easy to spot, which is VERY nice, and since the positional problem they had for ages has finally been solved (which was mainly why I set the explicit command) what are the pros and cons for either method these days?
Interestingly, since red dots survive sessions, I all of a sudden do not see any advantage to the actual "breakpoint" command itself, apart from its being able to be searched, which of course is significant.
Craig
Code: Select all
if <condition> then
breakpoint
else
<code>
end if
For some reason I got a notification of this old thread, but now that I'm here, do you know about the conditional setting for red dot breakpoints?
Is that a LiveCode tool?
Right-click on the dot, choose Edit from the menu. Fill out the condition you want to match. It will only break if the condition is true. You can use any valid LC syntax to create the condition.
I wish we could add this to the documentation for breakpoint. It's not even hinted at.
Code: Select all
if it = "dog" then breakpoint