vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
Functions | |
int | sceDbgAssertionHandler (const char *file, int line, int unk, const char *component, const char *msg,...) |
Handler for assertion logging in this library. More... | |
int | sceDbgLoggingHandler (const char *file, int line, SceDbgLogLevel logLevel, const char *component, const char *msg,...) |
Handler for logging in this library. More... | |
void | sceDbgSetBreakOnErrorState (SceBool breakOnError) |
Set whether or not to enter a breakpoint upon logging an error. More... | |
void | sceDbgSetBreakOnWarningState (SceBool breakOnWarning) |
Set whether or not to enter a breakpoint upon logging a warning. More... | |
void | sceDbgSetMinimumLogLevel (SceDbgLogLevel level) |
Set the minimum logging level. More... | |
Macros | |
#define | SCE_DBG_COMPONENT NULL |
Macro for the component SceLibDbg is being called within. More... | |
#define | SCE_DBG_BREAK_ON_ASSERT 1 |
Set whether or not to break/stop when an assertion fails. More... | |
#define | SCE_DBG_BREAK_ACTION asm volatile ("bkpt 0x0") |
Set the break/stop action when an assertion fails. More... | |
#define | SCE_DBG_ASSERT(expression) |
Assertion macro. More... | |
#define | SCE_DBG_ASSERT_MSG(expression, msg, ...) |
Assertion macro with custom msg. More... | |
#define | SCE_DBG_LOG(logLevel, msg, ...) sceDbgLoggingHandler(__FILE__, __LINE__, logLevel, SCE_DBG_COMPONENT, msg, ##__VA_ARGS__) |
Logging macro. More... | |
#define | SCE_DBG_LOG_TRACE(msg, ...) SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_TRACE, msg, ##__VA_ARGS__) |
Logging macros for individual log levels. More... | |
#define | SCE_DBG_LOG_INFO(msg, ...) SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_INFO, msg, ##__VA_ARGS__) |
#define | SCE_DBG_LOG_DEBUG(msg, ...) SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_DEBUG, msg, ##__VA_ARGS__) |
#define | SCE_DBG_LOG_WARNING(msg, ...) SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_WARNING, msg, ##__VA_ARGS__) |
#define | SCE_DBG_LOG_ERROR(msg, ...) SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_ERROR, msg, ##__VA_ARGS__) |
#define SCE_DBG_COMPONENT NULL |
Macro for the component SceLibDbg is being called within.
If undefined, NULL will be passed.
#define SCE_DBG_BREAK_ON_ASSERT 1 |
Set whether or not to break/stop when an assertion fails.
Enabled by default.
#define SCE_DBG_BREAK_ACTION asm volatile ("bkpt 0x0") |
Set the break/stop action when an assertion fails.
Set to a breakpoint by default. abort() is an example of a suitable break action.
#define SCE_DBG_ASSERT | ( | expression | ) |
Assertion macro.
[in] | expression | - The expression to be tested. |
#define SCE_DBG_ASSERT_MSG | ( | expression, | |
msg, | |||
... | |||
) |
Assertion macro with custom msg.
[in] | expression | - The expression to be tested. |
[in] | msg | - printf format string message. |
#define SCE_DBG_LOG | ( | logLevel, | |
msg, | |||
... | |||
) | sceDbgLoggingHandler(__FILE__, __LINE__, logLevel, SCE_DBG_COMPONENT, msg, ##__VA_ARGS__) |
Logging macro.
[in] | logLevel | - One of SceDbgLogLevel. |
[in] | msg | - printf formatted message. |
#define SCE_DBG_LOG_TRACE | ( | msg, | |
... | |||
) | SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_TRACE, msg, ##__VA_ARGS__) |
Logging macros for individual log levels.
#define SCE_DBG_LOG_INFO | ( | msg, | |
... | |||
) | SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_INFO, msg, ##__VA_ARGS__) |
#define SCE_DBG_LOG_DEBUG | ( | msg, | |
... | |||
) | SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_DEBUG, msg, ##__VA_ARGS__) |
#define SCE_DBG_LOG_WARNING | ( | msg, | |
... | |||
) | SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_WARNING, msg, ##__VA_ARGS__) |
#define SCE_DBG_LOG_ERROR | ( | msg, | |
... | |||
) | SCE_DBG_LOG(SCE_DBG_LOG_LEVEL_ERROR, msg, ##__VA_ARGS__) |
enum SceDbgLogLevel |
int sceDbgAssertionHandler | ( | const char * | file, |
int | line, | ||
int | unk, | ||
const char * | component, | ||
const char * | msg, | ||
... | |||
) |
Handler for assertion logging in this library.
The complete formatted output must not exceed 511 characters, so it is advised your message does not exceed ~256 characters. The output will be truncated if it does exceed 511 characters.
[in] | file | - Name of the file where the call was made. |
[in] | line | - Line number where the call was made. |
[in] | unk | - Unknown, never used internally. |
[in] | component | - Name of the component where the call was made. Optional field. |
[in] | msg | - printf formatted message. |
int sceDbgLoggingHandler | ( | const char * | file, |
int | line, | ||
SceDbgLogLevel | logLevel, | ||
const char * | component, | ||
const char * | msg, | ||
... | |||
) |
Handler for logging in this library.
The complete formatted output must not exceed 511 characters, so it is advised that your message does not exceed ~300 characters. The output will be truncated if it does exceed 511 characters. A line break is automatically appended.
[in] | file | - Name of the file where the call was made. |
[in] | line | - Line number where the call was made. |
[in] | logLevel | - One of SceDbgLogLevel. |
[in] | component | - Name of the component where the call was made. Optional field. |
[in] | msg | - printf formatted message. |
void sceDbgSetBreakOnErrorState | ( | SceBool | breakOnError | ) |
Set whether or not to enter a breakpoint upon logging an error.
Disabled by default.
[in] | breakOnError | - Enter the breakpoint? |
void sceDbgSetBreakOnWarningState | ( | SceBool | breakOnWarning | ) |
Set whether or not to enter a breakpoint upon logging a warning.
Disabled by default.
[in] | breakOnWarning | - Enter the breakpoint? |
void sceDbgSetMinimumLogLevel | ( | SceDbgLogLevel | level | ) |
Set the minimum logging level.
Any attempts to log at a level lower than this will not be outputted.