Primary crash properties required by the crash report system. 更多...
#include <CrashDescription.h>
类 FPrimaryCrashProperties 继承关系图:静态 Public 成员函数 | |
| static FPrimaryCrashProperties * | Get () |
| static bool | IsValid () |
| static void | Set (FPrimaryCrashProperties *NewInstance) |
| Sets new instance as the global. | |
| static void | Shutdown () |
| Shutdowns the global instance. | |
Public 属性 | |
| FString | AppDefaultLocale |
| The language ID the application that crashed. 更多... | |
| FCrashProperty | bAllowToBeContacted |
| Whether the user allowed us to be contacted. 更多... | |
| FString | BaseDir |
| The base directory where the app was running. 更多... | |
| bool | bHasLogFile |
| Whether this crash has a log file. 更多... | |
| bool | bHasMiniDumpFile |
| Whether this crash has a minidump file. 更多... | |
| bool | bHasPrimaryData |
| Whether this crash contains primary usable data. | |
| bool | bInBackground |
| Whether we were in the background when the crash happened | |
| bool | bIsEnsure |
| Whether the report comes from a non-fatal event such as an ensure | |
| bool | bIsOOM |
| Whether it was an OOM or not | |
| bool | bIsRequestingExit |
| Whether we crashed during shutdown | |
| bool | bLowMemoryWarning |
| Whether we got a low memory warning or not | |
| FCrashProperty | CallStack |
| An array of FStrings representing the callstack of the crash. 更多... | |
| FCrashProperty | CommandLine |
| The command line of the application that crashed. 更多... | |
| FCrashProperty | CPUBrand |
| The cpu brand of the device, e.g. 更多... | |
| ECrashDumpMode | CrashDumpMode |
| Crash dump mode. | |
| FString | CrashGUID |
| An unique report name that this crash belongs to. 更多... | |
| FCrashProperty | CrashReportClientVersion |
| CRC sets this to the current version of the software. | |
| FCrashProperty | CrashReporterMessage |
| Rich text string (should be localized by the crashing application) that will be displayed in the main CRC dialog Can be empty and the CRC's default text will be shown. | |
| FString | CrashType |
| The type of crash being reported, e.g. 更多... | |
| ECrashDescVersions | CrashVersion |
| Version. | |
| FString | DeploymentName |
| Deployment (also known as "EpicApp"), e.g. 更多... | |
| FString | EngineMode |
| The mode the game was in e.g. 更多... | |
| FCrashProperty | EngineModeEx |
| EngineModeEx e.g. 更多... | |
| FEngineVersion | EngineVersion |
| Encoded engine version. 更多... | |
| FCrashProperty | EpicAccountId |
| The Epic account ID for the user who last used the Launcher. 更多... | |
| FCrashProperty | ErrorMessage |
| The error message, can be assertion message, ensure message or message from the fatal error. 更多... | |
| FString | ExecutableName |
| The name of the exe that crashed. 更多... | |
| FCrashProperty | FullCrashDumpLocation |
| Location of full crash dump. 更多... | |
| FString | GameName |
| The name of the game that crashed. 更多... | |
| FCrashProperty | GameSessionID |
| The last game session id set by the application. 更多... | |
| FCrashProperty | LoginId |
| The unique ID used to identify the machine the crash occurred on. 更多... | |
| FCrashProperty | Modules |
| An array of module's name used by the game that crashed. | |
| int32 | NumMinidumpFramesToIgnore |
| Specifies the number of stack frames in the callstack to ignore when symbolicating from a minidump. | |
| FCrashProperty | PlatformCallbackResult |
| Platform-specific UE4 Core value (integer). | |
| FCrashProperty | PlatformFullName |
| The platform that crashed e.g. 更多... | |
| FCrashPropertyXmlNode | PlatformPropertiesExtras |
| Optional additional data for platform properties | |
| FString | RestartCommandLine |
| Copy of CommandLine that isn't anonymized so it can be used to restart the process | |
| FCrashProperty | SourceContext |
| An array of FStrings showing the source code around the crash. 更多... | |
| FCrashPropertyXmlNode | Threads |
| Thread contexts, XML elements containing info specific to an active thread, e.g. 更多... | |
| FCrashProperty | TimeOfCrash |
| The UTC time the crash occurred. 更多... | |
| FCrashProperty | UserActivityHint |
| An FString representing the user activity, if known, when the error occurred. 更多... | |
| FCrashProperty | UserDescription |
| An array of FStrings representing the user description of the crash. 更多... | |
| FCrashProperty | UserName |
| The name of the user that caused this crash. 更多... | |
Protected 成员函数 | |
| FString | EncodeArrayStringAsXMLString (const TArray< FString > &ArrayString) const |
| Encodes multi line property to be saved as single line. | |
| FPrimaryCrashProperties () | |
| Default constructor. | |
| template<typename Type > | |
| void | GetCrashProperty (Type &out_ReadValue, const FString &MainCategory, const FString &SecondCategory) const |
| Gets a crash property from the XML file. | |
| void | ReadXML (const FString &CrashContextFilepath, const TCHAR *Buffer=nullptr) |
| Reads previously set XML file. 更多... | |
| void | SetCrashGUID (const FString &Filepath) |
| Sets the CrasgGUID based on the report's path. | |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FString &NewValue) |
| Sets a crash property to a new value. | |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FXmlNode *NewNode) |
| Sets a crash property to a new value. | |
| template<typename Type > | |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const Type &Value) |
| Sets a crash property to a new value. | |
| ~FPrimaryCrashProperties () | |
| Destructor. | |
Protected 属性 | |
| FXmlFile * | XmlFile |
| Reader for the xml file. | |
| FString | XmlFilepath |
| Cached filepath. | |
静态 Protected 属性 | |
| static FPrimaryCrashProperties * | Singleton |
| Global instance. | |
友元 | |
| struct | FCrashProperty |
Primary crash properties required by the crash report system.
|
inlinestatic |
|
inlinestatic |
|
protected |
Reads previously set XML file.
Optionally give a buffer to parse from. Any changes will be stored to CrashContextFilePath.
| FString FPrimaryCrashProperties::AppDefaultLocale |
The language ID the application that crashed.
@LanguageExt varchar(64)
FPlatformMisc::GetDefaultLocale()
| FCrashProperty FPrimaryCrashProperties::bAllowToBeContacted |
Whether the user allowed us to be contacted.
If true the following properties are retrieved from the system: UserName (for non-launcher build) and EpicAccountID. Otherwise they will be empty.
| FString FPrimaryCrashProperties::BaseDir |
The base directory where the app was running.
@BaseDir varchar(512)
FPlatformProcess::BaseDir()
| bool FPrimaryCrashProperties::bHasLogFile |
Whether this crash has a log file.
@HasLogFile bit
| bool FPrimaryCrashProperties::bHasMiniDumpFile |
Whether this crash has a minidump file.
@HasMiniDumpFile bit
| FCrashProperty FPrimaryCrashProperties::CallStack |
An array of FStrings representing the callstack of the crash.
@RawCallStack varchar(MAX)
| FCrashProperty FPrimaryCrashProperties::CommandLine |
The command line of the application that crashed.
@CommandLine varchar(512)
FCommandLine::Get()
| FCrashProperty FPrimaryCrashProperties::CPUBrand |
The cpu brand of the device, e.g.
Intel, iPhone6, etc.
| FString FPrimaryCrashProperties::CrashGUID |
An unique report name that this crash belongs to.
Folder name.
| FString FPrimaryCrashProperties::CrashType |
The type of crash being reported, e.g.
Assert, Ensure, Hang
| FString FPrimaryCrashProperties::DeploymentName |
Deployment (also known as "EpicApp"), e.g.
DevPlaytest, PublicTest, Live @DeploymentName varchar(64)
| FString FPrimaryCrashProperties::EngineMode |
| FCrashProperty FPrimaryCrashProperties::EngineModeEx |
EngineModeEx e.g.
Unset, Dirty, Vanilla @DeploymentName varchar(64)
| FEngineVersion FPrimaryCrashProperties::EngineVersion |
Encoded engine version.
(AppVersion) E.g. 4.3.0.0-2215663+UE4-Releases+4.3 BuildVersion-BuiltFromCL-BranchName @EngineVersion varchar(64)
FEngineVersion::Current().ToString() ENGINE_VERSION_STRING
| FCrashProperty FPrimaryCrashProperties::EpicAccountId |
The Epic account ID for the user who last used the Launcher.
@EpicAccountId varchar(64)
| FCrashProperty FPrimaryCrashProperties::ErrorMessage |
The error message, can be assertion message, ensure message or message from the fatal error.
@Summary varchar(512)
GErrorMessage
| FString FPrimaryCrashProperties::ExecutableName |
The name of the exe that crashed.
(AppID) @GameName varchar(64)
| FCrashProperty FPrimaryCrashProperties::FullCrashDumpLocation |
Location of full crash dump.
Displayed in the crash report frontend.
| FString FPrimaryCrashProperties::GameName |
| FCrashProperty FPrimaryCrashProperties::GameSessionID |
The last game session id set by the application.
Application specific meaning. Some might not set this. @EpicAccountId varchar(64)
| FCrashProperty FPrimaryCrashProperties::LoginId |
The unique ID used to identify the machine the crash occurred on.
@ComputerName varchar(64)
| FCrashProperty FPrimaryCrashProperties::PlatformFullName |
The platform that crashed e.g.
Win64. @PlatformName varchar(64)
Last path of the directory
| FCrashProperty FPrimaryCrashProperties::SourceContext |
An array of FStrings showing the source code around the crash.
@SourceContext varchar(max)
| FCrashPropertyXmlNode FPrimaryCrashProperties::Threads |
Thread contexts, XML elements containing info specific to an active thread, e.g.
callstacks
| FCrashProperty FPrimaryCrashProperties::TimeOfCrash |
| FCrashProperty FPrimaryCrashProperties::UserActivityHint |
An FString representing the user activity, if known, when the error occurred.
@UserActivityHint varchar(512)
| FCrashProperty FPrimaryCrashProperties::UserDescription |
An array of FStrings representing the user description of the crash.
@Description varchar(512)
| FCrashProperty FPrimaryCrashProperties::UserName |
The name of the user that caused this crash.
@UserName varchar(64)
FString( FPlatformProcess::UserName() ).Replace( TEXT( "." ), TEXT( "" ) )