0

I'm trying to stop a running GDB inside of xcode using my AppleScript that builds and runs my iPhone PhoneGap apps.

It throws this error if the app is already running when I'm testing:

"Unable to debug executable since a debug session is in progress."

I need to get it to stop the current debugger before rebuilding.

Any ideas?

2 Answers 2

1

It took me a while, but here it is!

tell application "Xcode"
    activate

    tell sub menu of menu item 7 of main menu
            call method "performActionForItemAtIndex:" of it with parameters {4}
    end tell
end tell
Sign up to request clarification or add additional context in comments.

Comments

0

Just ended up using killall Xcode

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.