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,dunbarx wrote: Thu Aug 04, 2022 4:18 am Mark.
Do you mean the "combine" command? The code snippet you posted did not mention that.how have a I lived so long without knowing about that command???
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 pm The 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?dunbarx wrote: Mon Aug 08, 2022 2:33 pm The command takes up its own line, and the red dots sort of just lurk on an existing line. No way to substitute a dot for the command.

Is that a LiveCode tool?speedin70 wrote: Thu Sep 15, 2022 2:12 am I use the Property Tab Builder for this. Search for it on YouTube, it's easy to set up. Not sure if that will work for a PDM setup, but it's a very easy first step to check out.
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.dunbarx wrote: Thu Sep 15, 2022 4:01 am A conditional for a red dot? The dot lives "outside" of the actual text editor (the SE). How do you connect the two?

I wish we could add this to the documentation for breakpoint. It's not even hinted at.jacque wrote: Thu Sep 15, 2022 5:49 amRight-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.dunbarx wrote: Thu Sep 15, 2022 4:01 am A conditional for a red dot? The dot lives "outside" of the actual text editor (the SE). How do you connect the two?
Code: Select all
if it = "dog" then breakpoint