Script Editor / Debugger Problem [solved]

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

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Script Editor / Debugger Problem [solved]

Post by townsend » Sun Sep 30, 2018 11:44 pm

It's been a while. But I've kept my license current.
So now I go and download the new version 9.0.1
All is well. But when I look at the Script Editor / Debugger it's different.
The last time I used LiveCode, there was buttons for Step, Step Over and Stop.
They're no longer there. Plus, this simple code does not stop at either breakpoint.
I'm sure it's some simple omission on my part. What happened in my absence?
livecode debugger.PNG
Last edited by townsend on Mon Oct 01, 2018 4:23 pm, edited 1 time in total.

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Re: Script Editor / Debugger Problem

Post by townsend » Mon Oct 01, 2018 1:06 am

Another clue. To get around this problem, I decided to start this project in version 8.1.6, which I have spent 100+ hours in. And... there I had the same problem.

So it's not a 9.0 bug, but rather something in my Windows 10 environment. I run Kaspersky all the time. I tried turning if off. That didn't help. I also ran Malwarebytes and found nothing with that.

So.. I did a new installed of version 9.0.1 just before discovering this oddity, so I don't think doing a reinstall will make any difference.

jharris
Posts: 84
Joined: Wed Jan 26, 2011 3:28 am
Location: Arkansas - USA

Re: Script Editor / Debugger Problem

Post by jharris » Mon Oct 01, 2018 3:06 am

Hi townsend,

I'm just getting started again with Livecode 9.01.

I'm using Windows 10 and once code execution stops the buttons you're looking for are displayed. Just curious if that breakpoint might be disabled. On my system they are red if they're enabled or gray if disabled.
Attachments
debugger_lc.PNG
Operating System: macOS Monterey Version 12.5
LiveCode Version: 9.6.8

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Re: Script Editor / Debugger Problem

Post by townsend » Mon Oct 01, 2018 3:49 am

Good point! Those buttons I'm looking for only appear when the code breaks.

The REALLY odd thing is the code never breaks. You'll notice in my screen capture, there are two places where the code should break. 1- There's a outline of a red dot on the beep command. 2- and there's an outright breakpoint command.

The beep sound goes off and the code executes, but it never breaks. So that's another clue.
Why doesn't the breakpoints catch?

Also curious... why isn't that red dot breakpoint colored fully red?

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Script Editor / Debugger Problem

Post by LiveCode_Panos » Mon Oct 01, 2018 12:29 pm

Hi all,

You have to enable "Script Debug Mode" for the breakpoints to activate.

Just check Development-> Script Debug Mode.

Kind regards,
Panos
--

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Script Editor / Debugger Problem

Post by bogs » Mon Oct 01, 2018 12:47 pm

LiveCode_Panos wrote:
Mon Oct 01, 2018 12:29 pm
You have to enable "Script Debug Mode" for the breakpoints to activate.
Just curious, isn't that enabled by default in the setup? But certainly if you made any changes after the install, that could be the problem.

I did run some tests on a win10 vm with 9.0.1, I didn't see any issues with breaking either by setting the point or inserting the statement, so I think it likely it is going to be something pertinent to your setup. Both the clicked breakpoint and the typed one stopped the code here ~
Selection_003.png
Set breakpoint...
Selection_003.png (14.23 KiB) Viewed 5183 times
Selection_004.png
Typed breakpoint...
Selection_004.png (19.12 KiB) Viewed 5183 times
Image

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Script Editor / Debugger Problem

Post by LiveCode_Panos » Mon Oct 01, 2018 1:27 pm

Hello bogs,

Yes it is enabled by default, so I guess somehow it was accidentally turned off in townsend's setup.

Regards,
Panos
--

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Script Editor / Debugger Problem

Post by bogs » Mon Oct 01, 2018 2:26 pm

Gotcha, I thought maybe something else had changed since I last looked at 9.x :oops:
Image

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Re: Script Editor / Debugger Problem

Post by townsend » Mon Oct 01, 2018 4:23 pm

Yes!

Thanks guys! That was it! In all my years using LiveCode, I've never had the occasion to use the Script Debug Mode switch. Flipped that switch. Now everything is back to normal.

I always say, "The tech support forums for LiveCode are the best I've ever seen."

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”