By passing the argument "-console" when launching MotionBuilder, it is possible to print formatted messages, as a printf would. More...
Typedefs | |
typedef void(* | FBTraceStubFct) (unsigned int pLevel, const char *pStr) |
Trace Stub Function type define. | |
Enumerations | |
enum | FBTraceLevel { kFBNO_TRACE = 0 , kFBCRITICAL_TRACE = 1 , kFBNORMAL_TRACE = 10 , kFBALL_TRACE = 20 } |
Trace Level. More... | |
Functions | |
K_DLLIMPORT void | FBTraceSetLevel (unsigned int pNewLevel) |
Set Global Trace Detailed Level which affects all the output targets. | |
K_DLLIMPORT unsigned int | FBTraceGetLevel () |
Get Global Trace Detailed Level which affects all the output targets. | |
K_DLLIMPORT void | FBTrace (const char *pFormatString,...) |
This function prints useful debugging strings in the console with kFBNORMAL_TRACE output detailed level. | |
K_DLLIMPORT void | FBTraceWithLevel (unsigned int pLevel, const char *pFormatString,...) |
This function prints useful debugging strings in the console. | |
K_DLLIMPORT bool | FBRegisterTraceStubFct (FBTraceStubFct pFct) |
Register custom trace stub function. | |
K_DLLIMPORT bool | FBUnRegisterTraceStubFct (FBTraceStubFct pFct) |
Unregister custom trace stub function. | |
By passing the argument "-console" when launching MotionBuilder, it is possible to print formatted messages, as a printf would.
On Mac OSX / Linux, the strings are simply sent to stderr. Upon Python Editor open, those formatted messages will be forwarded to Python console as well.
Global trace detailed level (kFBNORMAL_TRACE by default) could be controlled via FBTraceSetLevel() / FBTraceGetLevel() functions, which affect all the trace output targets, User could use pythonidelib.SetTraceLevel() / GetTraceLevel() to further adjust python console's trace level as well (kFBNO_TRACE by default).
typedef void(* FBTraceStubFct) (unsigned int pLevel, const char *pStr) |
Trace Stub Function type define.
Definition at line 681 of file fbsystem.h.
enum FBTraceLevel |
Trace Level.
Definition at line 642 of file fbsystem.h.
K_DLLIMPORT bool FBRegisterTraceStubFct | ( | FBTraceStubFct | pFct | ) |
Register custom trace stub function.
pFct | Custom trace stub function. |
K_DLLIMPORT void FBTrace | ( | const char * | pFormatString, |
... | |||
) |
This function prints useful debugging strings in the console with kFBNORMAL_TRACE output detailed level.
pFormatString | A printf-style format string, to use the following arguments in the list. |
K_DLLIMPORT unsigned int FBTraceGetLevel | ( | ) |
Get Global Trace Detailed Level which affects all the output targets.
K_DLLIMPORT void FBTraceSetLevel | ( | unsigned int | pNewLevel | ) |
Set Global Trace Detailed Level which affects all the output targets.
pNewLevel | Any trace message with detailed level higher than this new level will be ignored, valid value range [kFBNO_TRACE, kFBALL_TRACE] |
K_DLLIMPORT void FBTraceWithLevel | ( | unsigned int | pLevel, |
const char * | pFormatString, | ||
... | |||
) |
This function prints useful debugging strings in the console.
pLevel | to control trace output detailed level, valid value range [kFBCRITICAL_TRACE, kFBALL_TRACE] |
pFormatString | A printf-style format string, to use the following arguments in the list. |
K_DLLIMPORT bool FBUnRegisterTraceStubFct | ( | FBTraceStubFct | pFct | ) |
Unregister custom trace stub function.
pFct | Custom trace stub function. |