Finding the interrupted function

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

Finding the interrupted function

Post by WinstonJenks »

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 »

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 »

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 »

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