Finding the interrupted function

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
WinstonJenks
Posts: 36
Joined: Fri Jan 01, 2010 12:11 am

Finding the interrupted function

Post by WinstonJenks » Thu Apr 08, 2010 6:55 am

I have a complicated application that periodically gets stuck in a script loop (apparently) because the application appears frozen. I can break out of it with Control-. (in Windows) and then the application is no longer frozen. But I still have no idea where the application was stuck. Is there any way I can either 1) stop the script and show the script debugger to see where I am, or 2) find the name of the interrupted handler after I hit Control-. ?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Finding the interrupted function

Post by BvG » Thu Apr 08, 2010 12:13 pm

When you hit ctrl-period, the error dialog pops up. The type should be "repeat: aborted" or similar. Click the "script" button at the bottom of that dialog to see the faulty repeats starting line.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

WinstonJenks
Posts: 36
Joined: Fri Jan 01, 2010 12:11 am

Re: Finding the interrupted function

Post by WinstonJenks » Tue Apr 13, 2010 11:10 pm

The error dialog does not pop up when I hit Control-period. Is there some setting that prevents that?

WinstonJenks
Posts: 36
Joined: Fri Jan 01, 2010 12:11 am

Re: Finding the interrupted function

Post by WinstonJenks » Mon Sep 27, 2010 4:51 pm

I found it. It looks like allowInterrupts global variable, in addition to the cantAbort properyty of each stack could be the cause of this behavior.

Post Reply