Xcode内部调试日志

Xcode内部调试日志,第1张

概述我正在逆向工程 Xcode,我想知道是否有办法启用调试日志.我猜Xcode可能有一些隐藏的偏好,是吗? 是的,您可以在Xcode中启用大量隐藏日志.以下列出了可以调整日志级别的所有方面.获取此列表 (lldb) po [[[DVTLogAspect allAspects] valueForKey:@"name"] sortedArrayUsingSelector:@selector(compare 我正在逆向工程 Xcode,我想知道是否有办法启用调试日志.我猜Xcode可能有一些隐藏的偏好,是吗?解决方法 是的,您可以在Xcode中启用大量隐藏日志.以下列出了可以调整日志级别的所有方面.获取此列表
(lldb) po [[[DVTLogAspect allAspects] valueForKey:@"name"] sortedArrayUsingSelector:@selector(compare:)]
automaticTerminationAuxiliaryfilesWritingBlockQueueBuildBuildConfigurationsBuildContextBuildInfoBuildMessagesBuildplanCreationbuildruleLoadingBuildSettingExpansionBuildSettingsBuildTaskCreationBuildingCacheCachePruningCachingCapabilitIEsClangCodeCompletionCodeSignCodeSignUICommandInvocationCommandlineBuildTimingConfiginspectionContextContainerDBGDeBUGSessionPerformanceDBGFormattedSummaryPerformanceDBGNonPrimaryPCPerformanceDBGStackFrameFetchPerformanceDBGSteppingperformanceDBGVariablesVIEwPerformanceDBGVIEwDeBUGgerDBGxpcDeBUGgingDSMDocSetLoadingDSMDocSetSearchDVTActivityOptionsDVTAnnotationManagerDVTArchitectureDVTAssertionEnvironmentDVTAssertionsDVTBindingHelperDVTCodesigningallTheThingsDVTCollectionCheckingDVTCommandlinetoolDVTDeviceDVTDeviceSearchDVTDownloadableDVTfilePathDVTfilePathFSEventsDVTfilePathLogMetricsDVTfileTypeDVTFindbarDVTFirstLaunchPackageInstallationHelperDVTFontAndcolorthemeDVTInvalIDExtensionDVTMacroExpansionParsingDVTMacronamepsaceDVTMixInDVTNSImageAdditionsDVTNSImage_ImageDeallocationsDVTNSRunLoopAdditionsDVTPlatformDVTPlugInExtensionFaultingDVTPlugInLoadingDVTPlugInLocatorDVTPlugInManagerDVTPlugInqueryDVTPreferenceSetManagerDVTRegularExpressionDVTReplacementVIEwDVTSDKDVTSigningCertificateDVTSigningCertificateManagerDVTSigningCertificateSourceDVTSourceEditorDrawingDVTSourceEditorFoldingDVTSourceEditorLayoutDVTSourceEditorPerformanceDVTSourceLandmarksDVTSourceModelDVTSourceScannerDVTSourceSpecificationLoadingDVTStateSavingDVTSystemActivityDVTTextAnnotationDVTTextCompletionPerformanceDVTTextCompletionUIDVTTextresponsivenessPerformanceDVTToolchainDepCommandTraversalDepNodeTraversalDependencIEsDependencyAnalysisDependencyGraphDependencyGraphCreationDependencyGraphCreationMetricDependencyGraphLockDependencyIssueDerivedInfoDerivedTargetAttributesdocumentfileTypesExecutableFSWatcherfileInfoCachingfileRefCachingfileSuffixMapPingfileTypeDetectionGenericOutputParsingGroupEnumeratorHdrScanningheaderScanningheadermapheadermapCreationheadermapsIBautoAttachIBICPerformanceMetricIBMessageChannelIDEactivitylogSectionIDEActivityReportfileIOCoordinatorIDEActivityVIEwIDEActivityVIEwIssuesIDEActivityVIEwStructureIDEApplicationLaunchPerformanceIDEBatchFindMetricIDEBatchFindNavigatorIDEBuilDalertMonitorIDEBuildArbitratorDeBUGIDEBuildDeBUGMetricIDEBuildissueProvIDerLogLoadingperformanceIDEBuildOnlyMetricIDEBuildOperationDeBUGIDEBuildOperationDependencIEsIDEBuildOperationMemorySnapshotIDEBuildOperationQueueSetResourceManagementIDEBuildOperationTimingIDEBuildTaskDeBUGIDEBuilderDeBUGIDECallHIErarchyIDECallerGeniusIDEClangDiagnosticIDEcodemoduleIDECommandManagerPerformanceIDEContainerDeBUGIDEContainerFSEventsDeBUGIDEContainerItemSCMDeBUGIDEContextautocreationIDECounterpartsGeniusResultsFinderPerformanceIDEDeclarativeInspectorGeneratorLoadingperformanceAspectIDEDiagnosticControllerIDEEditorContextdocumentForNavbarStructureChangedIDEEditorContextFluIDSwipeDeBUGIDEEditorContextNavigationIDEEditorContextObjectGraphCoalescingIDEEditorCoordinatorIDEEditordocumentIDEEditordocumentDeBUGIDEEditordocumentModificationAspectIDEEditorOpenPerformanceIDEExecutionEnvironmentExecuteOperationIDEfileReferenceDeBUGIDEfileReference_CallingdocumentEditedStateChangedTooOftenIDEFolderDeBUGIDEGeniusResultsIDEGeniusResultsPerformanceIDEImplicitDependencIEsDeBUGIDEIndexDataSourcePerformanceAspectIDEIndexDatabaseIDEIndeximporterDeBUGIDEIndexQPIDEIndexqueryIDEIndexSwiftDataSourceIDEIndexingIDEIndexingASTSizeIDEIndexingClangInvocationIDEIndexingMetricsIDEIndexingSchedulingIDEInitializationIDEIssueManagerIDEKVOIDEKeyBindingsIDElicenseAgreementVIEwControllerIDELogStoreIDENavigableItemIDENavigableItemarchivableRepresentationIDENavigableItemCoordinatorIDENavigatorOutlineVIEwPerformanceIDENotificationsIDEOpenQuicklyIDEOpenQuicklyMetricsIDEPackageInstallerHelperIDEPlaygroundExecutionCoordinatorIDEReadonlyItemsManagerIDEruncontextManagerIDEruncontextManagerPerformanceIDERunDestinationIDERunDestinationPerformanceIDESchemeSheetopeningIDESourceCodeCallersCalleesGeniusResultsFinderIDESourceCodeIndexGeniusResultsFinderIDESourceCodeNavigationIDESourceCodeNavigationPerformanceIDESourceCodeSymbolscoloringIDESourceCodeSymbolscoloringperformanceIDESourceControlIDESourceControlfileScanningIDESourceControlProfilingIDESourceControlTaskOperationIDESourceEditorDropRecomputableStateIDESourceEditortopLevelStructureIDESourceKitServiceIDESourceLanguageServiceSwiftIDESourceSyntaxcoloringPrefetchIDESyntaxcoloringperformanceIDETestManagerIDETestingHelperDeBUGIDETextEnCodingIDETextIndexIDEUpgradeTaskPerformanceMetricIDEUtilityAreaPerformanceAspectIDEVersionedfileManagerIDEWelcomeWindowPerformanceIDEWorkspaceClosingIDEWorkspaceLoadingIDEWorkspaceUILoadingIndexingInfoInstantOffIntegrityCheckingLaunchRunPhaseMessageQueuesModulesNativeBuildingOperationStatusOperationsOptionCategorIEsPersistedbuildresultsPlatformloadingPListPlugInCompilersPlugInToolsPluginLoading@R_745_3013@headerProfileSchemeProjectLoadingProjectLocalizationProjectReferenceProjectSavingProjectTimingPropertyValueQuickHelpRecursiveSearchPathsRelevantToolSpecsRunAlertsSDKLoadingSimplePreprocessorSourcefileFilteringSpecificationLoadingSpecificationLoadingTimingSpecificationsDeBUGSupportedBuildToolsTSRegularExpressionTargetTargetCacheTargetCachesThreadedOperationsUnarchivingWorkQueueProcessingXBSXcclangresultsPostprocessorXCGccMakefileDependencIEsXCPropertyValueiPhonesimulator

有三个日志级别

>关键(默认)
>标准
>详细

要更改日志级别,请将LogLevel附加到方面名称并将其写入Xcode的首选项.例如,要获取有关SDK加载的详细日志,请键入以下命令:

defaults write com.apple.dt.xcode DVTSDKLogLevel -int 3 && killall -u $USER cfprefsd

要一次更改所有日志级别,请使用DVTDefaultLogLevel首选项.但是你可能不想这样做,因为它会很快变得过于冗长.

如果您不希望永久存储用户默认值,则可以从终端运行Xcode并将用户默认值作为参数传递:

/Applications/Xcode.app/Contents/MacOS/Xcode -DVTSDKLogLevel 3
总结

以上是内存溢出为你收集整理的Xcode内部调试日志全部内容,希望文章能够帮你解决Xcode内部调试日志所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1109387.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存