Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

globals make the debugger unuseable: workaround? fix?



Is there a workaround or fix for the fact that having global variable declarations fubars the debugger (by offsetting breakpoints by 1 line for each global declaration)

From perusing the archives it seems people have been encountering this problem for at least 8 months.

example: myscript.applescript


global bob
global mary

on clicked
set bob to "bob"
set mary to "mary"
display dialog bob
display dialog mary
=> display dialog finished
end clicked


this script will break before display dialog bob
if you add another global, it will break at set mary to "mary"
if you remove a global, it will break on display dialog mary

Also, stepping into a handler in a script object loaded from another file does not work properly. The handler is shown in the frame list, but the code is not shown in the code inspector. I am loading code using the system demonstrated in UnitConverter.

I have to recommend whether to invest in moving our applescript/quark/acrobat production system to OS X. Given my experience in how difficult it is to get Quark Applescripts to work properly, I'm not willing to attempt this without a working debugger. Is there any likelihood this problem will be fixed?


Cheers,
Michael Johnston
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.