PBXDebugScriptCommand debugSessionDidStart error
PBXDebugScriptCommand debugSessionDidStart error
- Subject: PBXDebugScriptCommand debugSessionDidStart error
- From: Robert Purves <email@hidden>
- Date: Tue, 3 Jun 2008 19:58:17 +1200
I am using the technique described here
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_02_db_set_up_debug/chapter_42_section_6.html
>
to debug arbitrary applications in Xcode 3. The AppleScript below sets
things up in phase 1, then issues a 'debug' command in phase 2.
on run argv
-- phase 1: open host project and set its active executable to app
under test
-- caller supplies 3 arguments
set pathToDebugProject to item 1 of argv -- /path/to/
DebuggerHost.xcodeproj
set pathToAppUnderTest to item 2 of argv -- /path/to/<appname>.app
set executableName to item 3 of argv -- <appname>
tell application "Xcode"
activate
open POSIX file pathToDebugProject as Unicode text
tell project "DebuggerHost"
set e to executables whose name is executableName
if length of e is 0 then
set e to make new executable with properties {name:executableName,
path:pathToAppUnderTest}
else
set e to first item of e
end if
set active executable to e
end tell
end tell
-- phase 2: debug
ignoring application responses
tell application "Xcode"
tell project "DebuggerHost" to debug
end tell
end ignoring
end run
This works, in that the app under test is launched correctly under the
Xcode debugger; source code and local vars can be viewed, breakpoints
can be set, and so on.
But the debug command in phase 2 of the script invariably provokes
messages in Console.app:
3/06/08 6:36:58 PM Xcode[8298] *** -[PBXDebugScriptCommand
debugSessionDidStart:]: unrecognized selector sent to instance 0x2eb0690
3/06/08 6:36:58 PM Xcode[8298] An exception was thrown during
execution of an NSScriptCommand...
Worse, some actions, such as choosing Debug in Xcode 3's Run menu,
give a full alert:
Internal Error
Uncaught Exception:
*** -[PBXDebugScriptCommand debugSessionDidStart:]: unrecognized
selector sent to instance 0x4485910
Stack Backtrace:
The stack backtrace has been logged to the console.
Similar messages, with slightly different wording, are seen when I use
Xcode 2.4.1 instead of Xcode 3.
It seems that the setup phase of the AppleScript does not quite do the
Right Thing. Googling for 'PBXDebugScriptCommand' or
'debugSessionDidStart' gives no hits :-(
Robert P.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden