Call me stupid, but I just don't understand how I am supposed to debug in ASOC, or how I can try out and build things incrementally from code snippets without rebuilding the app zillions of times. How?
I followed the documentation in "Xcode Debugging Guide": first "Debugging Essentials", built the product with 'Debugging Symbols', read the topic "Debugging in the Text Editor", read other topics, but I just don't get anywhere!
I want to inspect variables, interface elements etcetera, to learn. How do I do that?
In ASS (Studio), when developing a largish app, I would frequently do incremental development by first trying out things directly in Script Editor, targeting the app, like this:
--existing handlers would be accessed by: tell application "myApp" to get scripts path of main bundle & "/" POSIX file result as string set someScpt to load script file (result & "someScript.scpt") --do stuff by targeting the app: tell application "myApp" content of stepper "Day Stepper" of box "Sources" of window 1 as integer --check stuff, do stuff, invoke handlers, set interface elements, etcetera end tell
When the new code snippet worked, it would be incorporated into the "real" ASS project and the app would be rebuilt. Good for incremental development, and a reasonable way to debug the software.
How can I do something similar in ASOC? Or something to the same effect?
PS: I guess all ASOC-related discussions should be directed to the new list 'email@hidden' rather than the ASS list(?) Or? I decided to cross-post anyway since it seems that very few people have subscribed to the new list (at least judging from its minimal traffic), whereas ASOC-related posts are still sent to the studio list. Responses to this post should probably be done on the new applescriptobjc list(?) |