Appcelerator Titanium Studio 1.0.1:如何在OS X桌面应用程序上显示Inspector?

时间:2011-06-22 17:31:07

标签: desktop-application titanium appcelerator inspector

当我选择在桌面应用程序中显示检查器时,我会收到以下错误。

正如他们的Wiki所说,我跟着这个: http://wiki.appcelerator.org/display/guides/Enabling+Web+Inspector+on+Mac+OSX+in+Desktop+1.2.0 但无法让它发挥作用。我确定我编辑了正确的文件(与我的App ID .plist相同)。使用Xcode编辑,添加了新行,type = Boolean,key = WebKitDeveloperExtras,value = YES。

每次单击“显示检查器”(右键菜单)时,我都会在控制台中收到此错误:

2011-06-20 19:36:17.656 My App [53516:b07] HIToolbox: ignoring exception '*** -[NSURL initFileURLWithPath:]: nil string parameter' that raised inside Carbon event dispatch
(
    0   CoreFoundation                      0x961086ca __raiseError + 410
    1   libobjc.A.dylib                     0x98067509 objc_exception_throw + 56
    2   CoreFoundation                      0x961083f8 +[NSException raise:format:arguments:] + 136
    3   CoreFoundation                      0x9610836a +[NSException raise:format:] + 58
    4   Foundation                          0x97d2fe94 -[NSURL(NSURL) initFileURLWithPath:] + 90
    5   Foundation                          0x97d2fe22 +[NSURL(NSURL) fileURLWithPath:] + 72
    6   WebKit                              0x1405bd36 -[WebInspectorWindowController init] + 806
    7   WebKit                              0x1405b9d7 -[WebInspectorWindowController initWithInspectedWebView:] + 39
    8   WebKit                              0x1405d003 _ZN18WebInspectorClient21openInspectorFrontendEPN7WebCore19InspectorControllerE + 67
    9   WebCore                             0x1480e443 _ZN7WebCore19InspectorController4showEv + 67
    10  libtiuimodule.dylib                 0x037152e0 _ZN2ti13OSXUserWindow13ShowInspectorEb + 48
    11  AppKit                              0x92424c4a -[NSApplication sendAction:to:from:] + 112
    12  AppKit                              0x92424afd -[NSMenuItem _corePerformAction] + 435
    13  AppKit                              0x924247ef -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 174
    14  AppKit                              0x924246de -[NSMenu performActionForItemAtIndex:] + 65
    15  AppKit                              0x92424691 -[NSMenu _internalPerformActionForItemAtIndex:] + 50
    16  AppKit                              0x924245f7 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 97
    17  AppKit                              0x9242453b -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 336
    18  AppKit                              0x92418c7d NSSLMMenuEventHandler + 404
    19  HIToolbox                           0x93b3ec0f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567
    20  HIToolbox                           0x93b3ded6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411
    21  HIToolbox                           0x93b60773 SendEventToEventTarget + 52
    22  HIToolbox                           0x93b8cdc7 _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 448
    23  HIToolbox                           0x93bb1b38 SendMenuCommandWithContextAndModifiers + 66
    24  HIToolbox                           0x93bb1aef SendMenuItemSelectedEvent + 121
    25  HIToolbox                           0x93bb19f7 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 152
    26  HIToolbox                           0x93d3337e _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttmS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1857
    27  HIToolbox                           0x93d336d5 _HandlePopUpMenuSelection7 + 678
    28  AppKit                              0x926aed2e _NSSLMPopUpCarbonMenu3 + 3937
    29  AppKit                              0x926af0be -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:] + 220
    30  AppKit                              0x92827ef5 -[NSMenu _popUpContextMenu:withEvent:forView:withFont:] + 270
    31  AppKit                              0x92827f94 -[NSMenu _popUpContextMenu:withEvent:forView:] + 63
    32  AppKit                              0x92827d67 -[NSMenu _popUpMenuWithEvent:forView:] + 52
    33  AppKit                              0x92a1ec55 -[NSView rightMouseDown:] + 103
    34  AppKit                              0x92710367 -[NSControl _rightMouseUpOrDown:] + 534
    35  AppKit                              0x924fbd3c -[NSWindow sendEvent:] + 5757
    36  AppKit                              0x92414833 -[NSApplication sendEvent:] + 6431
    37  AppKit                              0x923a8307 -[NSApplication run] + 917
    38  libkhost.dylib                      0x02f85cc7 _ZN5kroll4Host7RunLoopEv + 423
    39  libkhost.dylib                      0x02f0e0eb _ZN5kroll4Host3RunEv + 251
    40  libkhost.dylib                      0x02f0e579 Execute + 73
    41  My App                              0x0002155e _ZN9KrollBoot9StartHostEv + 350
    42  My App                              0x00022170 main + 480
    43  My App                              0x000032ea start + 54
)

2 个答案:

答案 0 :(得分:0)

“将此值设置为 true 将允许打开Inspector面板。”根据您发布的指南,需要将其设置为true而不是YES

答案 1 :(得分:0)

这不是一个“答案”,除了说这个问题似乎在这里,没有人找到一个体面的解决方法或解决方案。

除了这个问题,在Appcelerator自己的Q& A网站上还有3个单独的问题:

最后一个认为~/Library/Preferences/*.plist修正了{{1}}修正了{{1}}修正了我(Brian Huenefeld和其他用户找不到它。)

问题似乎影响了我的所有Titanium应用程序,而不仅仅是我第一次注意到问题的那个应用程序,而且我也尝试将密钥添加到Titanium Studio自己的Plist文件中但没有成功。

我也尝试过删除Plist文件和应用程序的应用程序支持文件夹,但都无济于事。

我认为如果没有检查器面板中的javascript调试器,我不需要再解释它是多么令人沮丧,特别是当工作室除了跟踪之外没有自己的调试功能时!